From c1f64baa4aadde1750203e5adf49fe05b7c4de1e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 9 Jun 2005 07:51:49 -0400 Subject: [PATCH] COMP: Need windows.h even on cygwin to get CreateFile API. --- Source/kwsys/SystemTools.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 3770879cc..938a95986 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -58,6 +58,11 @@ #include #endif +// Windows API. Some parts used even on cygwin. +#if defined(_WIN32) +# include +#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 -#include #include #define _unlink unlink inline int Mkdir(const char* dir)