From 693625b1710d83b969441512676593a6146692d8 Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Thu, 9 Jun 2005 07:51:49 -0400 Subject: [PATCH] COMP: Need windows.h even on cygwin to get CreateFile API. --- SystemTools.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index 79bcb9e3..11bbf2da 100644 --- a/SystemTools.cxx +++ b/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) -- GitLab