diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-05-25 21:23:48 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-05-25 21:23:48 +0300 |
commit | 10e152c590e96069c13889a7489fa6b21127b800 (patch) | |
tree | e675c767c156abe9a178fe0f3c72fadcb86361e5 /source/blender/imbuf/intern | |
parent | 161908157d67ee8bcfa0c26917cccdc40e0c67ea (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')
-rw-r--r-- | source/blender/imbuf/intern/oiio/openimageio_api.cpp | 1 |
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. |