Index: src/core/model/system-path.cc |
=================================================================== |
--- a/src/core/model/system-path.cc |
+++ b/src/core/model/system-path.cc |
@@ -57,8 +57,10 @@ |
* \def SYSTEM_PATH_SEP |
* System-specific path separator used between directory names. |
*/ |
-#if defined (__win32__) |
+#if defined (_WIN32) |
#define SYSTEM_PATH_SEP "\\" |
+#define WIN32_LEAN_AND_MEAN |
+#include <windows.h> |
#else |
#define SYSTEM_PATH_SEP "/" |
#endif |
@@ -339,6 +341,13 @@ |
{ |
NS_LOG_ERROR ("failed creating directory " << tmp); |
} |
+#else |
+#ifdef _WIN32 |
+ if (CreateDirectory(tmp.c_str(), NULL)) |
+ { |
+ NS_LOG_ERROR("failed creating directory " << path); |
+ } |
+#endif |
#endif |
} |
@@ -348,6 +357,13 @@ |
{ |
NS_LOG_ERROR ("failed creating directory " << path); |
} |
+#else |
+#ifdef _WIN32 |
+ if (CreateDirectory(path.c_str(), NULL)) |
+ { |
+ NS_LOG_ERROR("failed creating directory " << path); |
+ } |
+#endif |
#endif |
} |