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:
authorCampbell Barton <ideasman42@gmail.com>2012-10-15 06:15:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-15 06:15:07 +0400
commit4d4664d98f49cfb171a43bd6ae6bb002b5f3c34b (patch)
treee458f200b0061c4adec3a0d5b8f7f523b647c036 /source/blender/blenlib/intern/noise.c
parent977aaeb95c2946f2c8d83dd6a15979424a869eda (diff)
code cleanup: check for msvc directly when using warning pragma's.
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r--source/blender/blenlib/intern/noise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index 792bf929182..124624ca137 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -31,9 +31,9 @@
*/
-#ifdef _WIN32
-#pragma warning (disable : 4244) // "conversion from double to float"
-#pragma warning (disable : 4305) // "truncation from const double to float"
+#ifdef _MSC_VER
+# pragma warning (disable:4244) /* "conversion from double to float" */
+# pragma warning (disable:4305) /* "truncation from const double to float" */
#endif
#include <math.h>