Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-20 09:40:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-20 12:06:06 +0300
commitcfc8d80f2cee778022359ee2354a523970a06fdf (patch)
treee315957cc5118f7ecad19cd162d6d828b899ab12 /source/blender/imbuf/intern/oiio/openimageio_api.cpp
parentb30ab24fb823b83256fe981843069a1d73c5bbb8 (diff)
ImBuf: Solve re-definition warnings
The idea now is to have FFmpeg/OIIO headers listed after the system ones. This is because FFmpeg/OIIO might define some constants with the same name as the ones from math.h. FFmpeg/OIIO has ifdef around defines, but math.h doesn't check whether constants were already defined or not, which causes some noisy warnings.
Diffstat (limited to 'source/blender/imbuf/intern/oiio/openimageio_api.cpp')
-rw-r--r--source/blender/imbuf/intern/oiio/openimageio_api.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/oiio/openimageio_api.cpp b/source/blender/imbuf/intern/oiio/openimageio_api.cpp
index 0a2e8742ba8..b24a89c969c 100644
--- a/source/blender/imbuf/intern/oiio/openimageio_api.cpp
+++ b/source/blender/imbuf/intern/oiio/openimageio_api.cpp
@@ -31,11 +31,6 @@
#include <set>
-#include <openimageio_api.h>
-#include <OpenImageIO/imageio.h>
-
-OIIO_NAMESPACE_USING
-
#if defined(WIN32) && !defined(FREE_WINDOWS)
#include "utfconv.h"
#endif
@@ -53,6 +48,11 @@ extern "C"
#include "IMB_colormanagement_intern.h"
}
+#include <openimageio_api.h>
+#include <OpenImageIO/imageio.h>
+
+OIIO_NAMESPACE_USING
+
using namespace std;
typedef unsigned char uchar;