summaryrefslogtreecommitdiff
path: root/src/utils/mkdir.cpp
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2011-10-24 20:28:15 +0300
committerBernd Wachter <bwachter-tmw@lart.info>2011-10-25 13:36:33 +0300
commit8954a7ca0f70bbf167c9119d26c7bca8407e8da6 (patch)
tree5c57e4ee47518bb21ce2f0dc10d5fac963875af7 /src/utils/mkdir.cpp
parent9c5791d3e3b413d8b703f1530f67de8936a3434c (diff)
downloadmana-8954a7ca0f70bbf167c9119d26c7bca8407e8da6.tar.gz
mana-8954a7ca0f70bbf167c9119d26c7bca8407e8da6.tar.bz2
mana-8954a7ca0f70bbf167c9119d26c7bca8407e8da6.tar.xz
mana-8954a7ca0f70bbf167c9119d26c7bca8407e8da6.zip
Change the wrong, but mostly supported WIN32 macro to the correct _WIN32, enforced by -std=c++0x
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/utils/mkdir.cpp')
-rw-r--r--src/utils/mkdir.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index 75ab8595..ee40488e 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -22,7 +22,7 @@
#include <cstring>
#include <cerrno>
-#if defined WIN32
+#if defined _WIN32
#include <windows.h>
#endif
@@ -51,7 +51,7 @@ int mkdir_r(const char *pathname) {
}
for (p=tmp; *p; p++) {
-#if defined WIN32
+#if defined _WIN32
if (*p == '/' || *p == '\\')
#else
if (*p == '/')
@@ -77,13 +77,13 @@ int mkdir_r(const char *pathname) {
return -1;
}
-#if defined WIN32
+#if defined _WIN32
if (!CreateDirectory(tmp, 0))
#else
if (mkdir(tmp, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH))
#endif
{
-#if defined WIN32
+#if defined _WIN32
// hack, hack. just assume that x: might be a drive
// letter, and try again
if (!(strlen(tmp) == 2 &&