From e8ced6a0e203f6a6c73027eb9c70cc98c9d45f6c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Fri, 17 Aug 2007 10:14:32 -0400 Subject: [PATCH] COMP: include windows.h first, as it is done in the other source files Alex --- Source/cmGlobalGenerator.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index e39fd71c5..aeffcdf35 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -14,6 +14,10 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ +#if defined(_WIN32) && !defined(__CYGWIN__) +#include "windows.h" // this must be first to define GetCurrentDirectory +#endif + #include "cmGlobalGenerator.h" #include "cmLocalGenerator.h" #include "cmExternalMakefileProjectGenerator.h" @@ -25,12 +29,6 @@ #include // required for atof -#if defined(_WIN32) && !defined(__CYGWIN__) -#include -// workaround against Windows name mangling: -#undef GetCurrentDirectory -#endif - #include cmGlobalGenerator::cmGlobalGenerator()