diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-03-18 20:23:56 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-03-18 20:23:56 +0300 |
commit | 1a502097c7c73bdb8afbca498102e971fb120575 (patch) | |
tree | ed904dc987ce3a256512428f57470dbca474a602 /source/blender/blenlib/BLI_math_base.h | |
parent | c9c08dc7c8736e864352a41437592670a5d341e9 (diff) |
Cleanup: Fix build warnings on windows.
Two headers define the _USE_MATH_DEFINES symbol now, if both
are included warnings are generated.
Added some guards, all good again.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 7555d3d7daf..ef76958f269 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -27,7 +27,7 @@ * \ingroup bli */ -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(_USE_MATH_DEFINES) # define _USE_MATH_DEFINES #endif |