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/gameengine/GameLogic/SCA_AlwaysSensor.cpp
parent977aaeb95c2946f2c8d83dd6a15979424a869eda (diff)
code cleanup: check for msvc directly when using warning pragma's.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_AlwaysSensor.cpp')
-rw-r--r--source/gameengine/GameLogic/SCA_AlwaysSensor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp b/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp
index 6b697f4f15b..1a6a82a33eb 100644
--- a/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp
+++ b/source/gameengine/GameLogic/SCA_AlwaysSensor.cpp
@@ -32,11 +32,10 @@
* \ingroup gamelogic
*/
-
-#if defined(WIN32) && !defined(FREE_WINDOWS)
-// This warning tells us about truncation of __long__ stl-generated names.
-// It can occasionally cause DevStudio to have internal compiler warnings.
-#pragma warning( disable : 4786 )
+#ifdef _MSC_VER
+ /* This warning tells us about truncation of __long__ stl-generated names.
+ * It can occasionally cause DevStudio to have internal compiler warnings. */
+# pragma warning( disable:4786 )
#endif
#include "SCA_AlwaysSensor.h"