From 71400cad0253c8f62623b8e9451342f58a973315 Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 7 Oct 2007 16:22:16 -0400 Subject: COMP: Simplified include file logic. The windows.h header should be included for all compilers on windows. --- Source/cmSystemTools.cxx | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index fd09409..ac82c53 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -18,35 +18,26 @@ #include #include #include +#include #include #include #include -// support for realpath call -#ifndef _WIN32 -#include -#include -#include -#include -#endif - -#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__)) -# define CM_SYSTEM_TOOLS_WINDOWS -#include -#include -#include -#include -#define _unlink unlink +#if defined(_WIN32) +# include #else -#include -#include -#include -#include +# include +# include +# include #endif #include +#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__)) +# include +#endif + #if defined(CMAKE_BUILD_WITH_CMAKE) # include # include // auto_ptr @@ -68,7 +59,7 @@ extern char** environ; # endif #endif -#ifdef CM_SYSTEM_TOOLS_WINDOWS +#ifdef _WIN32 class cmSystemToolsWindowsHandle { public: -- cgit v0.12