summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-15 08:30:22 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-15 08:30:22 -0400
commit1d061ae896cb9d96898b3161ed9f8cc279fdd6a5 (patch)
treef5a7814f0ec0c703b088ce058edf1d0459278033 /Source/cmGlobalVisualStudio71Generator.cxx
parentb6466061cb06189fa6fdac1e542cb7fbad7dabfd (diff)
downloadcmake-1d061ae896cb9d96898b3161ed9f8cc279fdd6a5.tar.gz
fix include order because of GetCurrentDirectory define and windows.h problem
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index 3db033dc3e..315b2aa0ef 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -14,11 +14,12 @@
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
+#include "windows.h" // this must be first to define GetCurrentDirectory
#include "cmGlobalVisualStudio71Generator.h"
#include "cmLocalVisualStudio7Generator.h"
#include "cmMakefile.h"
#include "cmake.h"
-#include "windows.h"
+
cmGlobalVisualStudio71Generator::cmGlobalVisualStudio71Generator()
@@ -48,7 +49,6 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
this->WriteSLNHeader(fout);
// Get the home directory with the trailing slash
- #undef GetCurrentDirectory
std::string homedir = root->GetMakefile()->GetCurrentDirectory();
homedir += "/";
bool doneAllBuild = false;