Commit e4fe1d1a authored by Stephen Kelly's avatar Stephen Kelly Committed by Brad King
Browse files

SystemTools: Refactor selection of Windows directory APIs

Change-Id: I08ee07db55b21ab886658d2ae50a82775180f037
parent 2f0165f1
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
# define _XOPEN_SOURCE_EXTENDED # define _XOPEN_SOURCE_EXTENDED
#endif #endif
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__))
# define KWSYS_WINDOWS_DIRS
#endif
#include "kwsysPrivate.h" #include "kwsysPrivate.h"
#include KWSYS_HEADER(RegularExpression.hxx) #include KWSYS_HEADER(RegularExpression.hxx)
#include KWSYS_HEADER(SystemTools.hxx) #include KWSYS_HEADER(SystemTools.hxx)
...@@ -205,8 +209,7 @@ static time_t windows_filetime_to_posix_time(const FILETIME& ft) ...@@ -205,8 +209,7 @@ static time_t windows_filetime_to_posix_time(const FILETIME& ft)
} }
#endif #endif
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__MINGW32__)) #ifdef KWSYS_WINDOWS_DIRS
#include <wctype.h> #include <wctype.h>
inline int Mkdir(const kwsys_stl::string& dir) inline int Mkdir(const kwsys_stl::string& dir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment