aboutsummaryrefslogtreecommitdiff
path: root/tools/create_msvc/create_msvc.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-10-27 19:21:47 +0000
committerJohannes Schickel2009-10-27 19:21:47 +0000
commit13894c389d0510cc699b1f18c20d2a34d5fc3e0f (patch)
treebe4c5a1fc6960fa08e0fc611de0fd568c39c2eed /tools/create_msvc/create_msvc.cpp
parent6b2d85945cbea6c5f5b366ba460003a9e82e41ef (diff)
downloadscummvm-rg350-13894c389d0510cc699b1f18c20d2a34d5fc3e0f.tar.gz
scummvm-rg350-13894c389d0510cc699b1f18c20d2a34d5fc3e0f.tar.bz2
scummvm-rg350-13894c389d0510cc699b1f18c20d2a34d5fc3e0f.zip
Fix building under MSVC.
svn-id: r45448
Diffstat (limited to 'tools/create_msvc/create_msvc.cpp')
-rw-r--r--tools/create_msvc/create_msvc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index 253dbaf058..7c891bdb02 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -40,7 +40,7 @@
#include <cstdlib>
#include <ctime>
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
#include <windows.h>
#else
#include <sys/param.h>
@@ -705,7 +705,7 @@ UUIDMap createUUIDMap(const BuildSetup &setup) {
}
std::string createUUID() {
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
UUID uuid;
if (UuidCreate(&uuid) != RPC_S_OK)
error("UuidCreate failed");
@@ -1293,7 +1293,7 @@ typedef std::list<FSNode> FileList;
*/
FileList listDirectory(const std::string &dir) {
FileList result;
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
WIN32_FIND_DATA fileInformation;
HANDLE fileHandle = FindFirstFile((dir + "/*").c_str(), &fileInformation);