diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-15 06:15:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-15 06:15:07 +0400 |
commit | 4d4664d98f49cfb171a43bd6ae6bb002b5f3c34b (patch) | |
tree | e458f200b0061c4adec3a0d5b8f7f523b647c036 /source/gameengine/Expressions | |
parent | 977aaeb95c2946f2c8d83dd6a15979424a869eda (diff) |
code cleanup: check for msvc directly when using warning pragma's.
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r-- | source/gameengine/Expressions/Value.h | 6 | ||||
-rw-r--r-- | source/gameengine/Expressions/VectorValue.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/Expressions/Value.h b/source/gameengine/Expressions/Value.h index 92b5e20543c..c4af3255f4a 100644 --- a/source/gameengine/Expressions/Value.h +++ b/source/gameengine/Expressions/Value.h @@ -19,9 +19,9 @@ #ifndef __VALUE_H__ #define __VALUE_H__ -#if defined(WIN32) && !defined(FREE_WINDOWS) -#pragma warning (disable:4786) -#endif /* WIN32 */ +#ifdef _MSC_VER +# pragma warning (disable:4786) +#endif #include <map> // array functionality for the propertylist #include "STR_String.h" // STR_String class diff --git a/source/gameengine/Expressions/VectorValue.cpp b/source/gameengine/Expressions/VectorValue.cpp index 65f5d7d3d22..ed13b0c8639 100644 --- a/source/gameengine/Expressions/VectorValue.cpp +++ b/source/gameengine/Expressions/VectorValue.cpp @@ -15,8 +15,8 @@ * */ -#if defined(WIN32) && !defined(FREE_WINDOWS) -#pragma warning (disable:4786) +#ifdef _MSC_VER +# pragma warning (disable:4786) #endif #include "Value.h" |