Prevented #define for in VS2012.

This commit is contained in:
Daniel Buckmaster 2012-09-26 23:26:02 +10:00
parent fffade3923
commit 90e022a100
2 changed files with 4 additions and 0 deletions

View file

@ -88,7 +88,9 @@ typedef unsigned _int64 U64;
# define FN_CDECL __cdecl ///< Calling convention
#endif
#if _MSC_VER < 1700
#define for if(false) {} else for ///< Hack to work around Microsoft VC's non-C++ compliance on variable scoping
#endif
// disable warning caused by memory layer
// see msdn.microsoft.com "Compiler Warning (level 1) C4291" for more details

View file

@ -116,8 +116,10 @@ static const F32 F32_MAX = F32(3.402823466e+38F); ///< Constant
#ifdef _MSC_VER
#if _MSC_VER < 1700
#define for if(false) {} else for ///< Hack to work around Microsoft VC's non-C++ compliance on variable scoping
#endif
#endif
#endif //_NTYPES_H_