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>2020-03-18 20:23:56 +0300
committerRay Molenkamp <github@lazydodo.com>2020-03-18 20:23:56 +0300
commit1a502097c7c73bdb8afbca498102e971fb120575 (patch)
treeed904dc987ce3a256512428f57470dbca474a602 /source/blender/blenlib/BLI_winstuff.h
parentc9c08dc7c8736e864352a41437592670a5d341e9 (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_winstuff.h')
-rw-r--r--source/blender/blenlib/BLI_winstuff.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index 4666151f84a..eddb69e84ec 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -52,7 +52,10 @@
extern "C" {
#endif
-#define _USE_MATH_DEFINES
+#if !defined(_USE_MATH_DEFINES)
+# define _USE_MATH_DEFINES
+#endif
+
#define MAXPATHLEN MAX_PATH
#ifndef S_ISREG