code cleanup: check for msvc directly when using warning pragma's.

This commit is contained in:
Campbell Barton
2012-10-15 02:15:07 +00:00
parent 977aaeb95c
commit 4d4664d98f
62 changed files with 280 additions and 314 deletions

View File

@@ -34,10 +34,10 @@
*/
#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 "BoolValue.h"