From d3735b65d607d6a999f8dc99ff7e0a3b6b18694e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 14 Mar 2001 17:49:47 -0500 Subject: [PATCH] ERR: Added for-loop scoping hack for CMake sources on MSVC --- Source/cmStandardIncludes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 2d820b152..c5bc001ca 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -28,6 +28,8 @@ #ifdef _MSC_VER #pragma warning ( disable : 4786 ) +// for loop scoping hack +#define for if(false) {} else for #endif #ifndef CMAKE_NO_ANSI_STREAM_HEADERS