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:
authorRay Molenkamp <github@lazydodo.com>2019-05-25 21:23:48 +0300
committerRay Molenkamp <github@lazydodo.com>2019-05-25 21:23:48 +0300
commit10e152c590e96069c13889a7489fa6b21127b800 (patch)
treee675c767c156abe9a178fe0f3c72fadcb86361e5 /source/blender/imbuf/intern/oiio/openimageio_api.cpp
parent161908157d67ee8bcfa0c26917cccdc40e0c67ea (diff)
imbuf/oiio: Resolve build warnings with MSVC.
math.h and oiio's missing_math.h where clashing over the definitions of common math defines like M_PI.
Diffstat (limited to 'source/blender/imbuf/intern/oiio/openimageio_api.cpp')
-rw-r--r--source/blender/imbuf/intern/oiio/openimageio_api.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/oiio/openimageio_api.cpp b/source/blender/imbuf/intern/oiio/openimageio_api.cpp
index 32079e4f290..7a47d0f7787 100644
--- a/source/blender/imbuf/intern/oiio/openimageio_api.cpp
+++ b/source/blender/imbuf/intern/oiio/openimageio_api.cpp
@@ -25,6 +25,7 @@
#if defined(WIN32)
# include "utfconv.h"
+# define _USE_MATH_DEFINES
#endif
// NOTE: Keep first, BLI_path_util conflicts with OIIO's format.