[cmake-developers] [PATCH v3 6/7] Use Windows version of Directory::Load for MinGW too
Dāvis Mosāns
davispuh at gmail.com
Wed Jul 6 15:12:12 EDT 2016
Otherwise it would use POSIX functions which works only for ASCII paths.
---
Source/kwsys/Directory.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx
index c549792..659c559 100644
--- a/Source/kwsys/Directory.cxx
+++ b/Source/kwsys/Directory.cxx
@@ -86,7 +86,7 @@ void Directory::Clear()
// First microsoft compilers
-#if defined(_MSC_VER) || defined(__WATCOMC__)
+#if defined(_WIN32) || defined(__WATCOMC__)
#include <windows.h>
#include <io.h>
#include <ctype.h>
--
2.9.0
More information about the cmake-developers
mailing list