diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index c0ec2e4b73..30865f9ddb 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -64,9 +64,12 @@ #include /* sigprocmask */ #endif -// Windows API. Some parts used even on cygwin. -#if defined(_WIN32) || defined (__CYGWIN__) +// Windows API. +#if defined(_WIN32) # include +#elif defined (__CYGWIN__) +# include +# undef _WIN32 #endif #ifdef __CYGWIN__