浏览代码

Merge branch 'vs2012-fixes' of https://github.com/eightyeight/Torque3D into eightyeight-vs2012-fixes

DavidWyand-GG 13 年之前
父节点
当前提交
cdb7e60d67
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      Engine/source/platform/types.visualc.h
  2. 2 0
      Engine/source/platform/typesWin32.h

+ 2 - 0
Engine/source/platform/types.visualc.h

@@ -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

+ 2 - 0
Engine/source/platform/typesWin32.h

@@ -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_