diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2011-10-24 20:28:15 +0300 |
---|---|---|
committer | Bernd Wachter <bwachter-tmw@lart.info> | 2011-10-25 13:36:33 +0300 |
commit | 8954a7ca0f70bbf167c9119d26c7bca8407e8da6 (patch) | |
tree | 5c57e4ee47518bb21ce2f0dc10d5fac963875af7 /src/utils | |
parent | 9c5791d3e3b413d8b703f1530f67de8936a3434c (diff) | |
download | mana-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')
-rw-r--r-- | src/utils/copynpaste.cpp | 2 | ||||
-rw-r--r-- | src/utils/mkdir.cpp | 8 | ||||
-rw-r--r-- | src/utils/specialfolder.cpp | 2 | ||||
-rw-r--r-- | src/utils/specialfolder.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index 3d2e3b80..458a6d27 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -35,7 +35,7 @@ #include <SDL_syswm.h> #include "copynpaste.h" -#ifdef WIN32 +#ifdef _WIN32 bool RetrieveBuffer(std::string& text, std::string::size_type& pos) { bool ret = false; 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 && diff --git a/src/utils/specialfolder.cpp b/src/utils/specialfolder.cpp index 63337578..0c82ce68 100644 --- a/src/utils/specialfolder.cpp +++ b/src/utils/specialfolder.cpp @@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifdef WIN32 +#ifdef _WIN32 #include "specialfolder.h" #include <windows.h> diff --git a/src/utils/specialfolder.h b/src/utils/specialfolder.h index eef6416b..0c3e999c 100644 --- a/src/utils/specialfolder.h +++ b/src/utils/specialfolder.h @@ -21,7 +21,7 @@ #ifndef SPECIALFOLDER_H #define SPECIALFOLDER_H -#ifdef WIN32 +#ifdef _WIN32 #include <shlobj.h> #include <string> std::string getSpecialFolderLocation(int folderId); |