瀏覽代碼

cmStandardIncludes: Remove ANSI_FOR_SCOPE hack.

All compilers hosting CMake support proper for scoping.
Stephen Kelly 11 年之前
父節點
當前提交
bb3bce706a
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      Source/cmStandardIncludes.h

+ 0 - 7
Source/cmStandardIncludes.h

@@ -25,7 +25,6 @@
 #pragma warning ( disable : 4786 )
 #pragma warning ( disable : 4503 )
 #pragma warning ( disable : 4512 ) /* operator=() could not be generated */
-#define CMAKE_NO_ANSI_FOR_SCOPE
 #endif
 
 
@@ -93,12 +92,6 @@
 #define std
 #endif
 
-// if the compiler does not support ansi for scoping of vars use a
-// #define hack
-#ifdef CMAKE_NO_ANSI_FOR_SCOPE
-#define for if(false) {} else for
-#endif
-
 #if defined( _MSC_VER )
 typedef unsigned short mode_t;
 #endif