aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorBastien Bouclet2016-07-07 07:49:18 +0200
committerBastien Bouclet2016-07-07 18:47:18 +0200
commite1c186e85f398f43198219beaf0bccae30d91b7c (patch)
treeba8c37a9afaa8fa8a7ca70e0a278041ab80a3d96 /devtools
parent6a3e07dca5de100afbb81c6b375b10dfd1865c69 (diff)
downloadscummvm-rg350-e1c186e85f398f43198219beaf0bccae30d91b7c.tar.gz
scummvm-rg350-e1c186e85f398f43198219beaf0bccae30d91b7c.tar.bz2
scummvm-rg350-e1c186e85f398f43198219beaf0bccae30d91b7c.zip
DEVTOOLS: Fix create_project build with MinGW64
Diffstat (limited to 'devtools')
-rw-r--r--devtools/create_project/create_project.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index c5892763bb..7e2cad0901 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -54,7 +54,7 @@
#define USE_WIN32_API
#endif
-#ifdef USE_WIN32_API
+#if (defined(_WIN32) || defined(WIN32))
#include <windows.h>
#else
#include <sstream>
@@ -1212,7 +1212,7 @@ bool compareNodes(const FileNode *l, const FileNode *r) {
FileList listDirectory(const std::string &dir) {
FileList result;
-#ifdef USE_WIN32_API
+#if defined(_WIN32) || defined(WIN32)
WIN32_FIND_DATA fileInformation;
HANDLE fileHandle = FindFirstFile((dir + "/*").c_str(), &fileInformation);