diff options
author | Brad King <brad.king@kitware.com> | 2005-06-09 11:51:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-06-09 11:51:49 (GMT) |
commit | c1f64baa4aadde1750203e5adf49fe05b7c4de1e (patch) | |
tree | d8652a59f59761c3a29f7b1a925d59aa00829307 /Source/kwsys | |
parent | c7a61b9802a636f206b6ac4880297c961145ca1f (diff) | |
download | CMake-c1f64baa4aadde1750203e5adf49fe05b7c4de1e.zip CMake-c1f64baa4aadde1750203e5adf49fe05b7c4de1e.tar.gz CMake-c1f64baa4aadde1750203e5adf49fe05b7c4de1e.tar.bz2 |
COMP: Need windows.h even on cygwin to get CreateFile API.
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 3770879..938a959 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -58,6 +58,11 @@ #include <termios.h> #endif +// Windows API. Some parts used even on cygwin. +#if defined(_WIN32) +# include <windows.h> +#endif + // This is a hack to prevent warnings about these functions being // declared but not referenced. #if defined(__sgi) && !defined(__GNUC__) @@ -82,7 +87,6 @@ public: #if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)) #include <io.h> -#include <windows.h> #include <direct.h> #define _unlink unlink inline int Mkdir(const char* dir) |