[Scummvm-git-logs] scummvm master -> 4d9bf4429f5c4bcb92ab2cbc9b2d03958354fc61
sev-
noreply at scummvm.org
Fri Mar 10 09:57:35 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4d9bf4429f DEVTOOLS: Fix create_engine compilation with mingw-w64
Commit: 4d9bf4429f5c4bcb92ab2cbc9b2d03958354fc61
https://github.com/scummvm/scummvm/commit/4d9bf4429f5c4bcb92ab2cbc9b2d03958354fc61
Author: hax0kartik (agarwala.kartik at gmail.com)
Date: 2023-03-10T10:57:29+01:00
Commit Message:
DEVTOOLS: Fix create_engine compilation with mingw-w64
Changed paths:
devtools/create_engine/create_engine.cpp
diff --git a/devtools/create_engine/create_engine.cpp b/devtools/create_engine/create_engine.cpp
index 3a6dc70a2b4..ba115c068b8 100644
--- a/devtools/create_engine/create_engine.cpp
+++ b/devtools/create_engine/create_engine.cpp
@@ -25,7 +25,7 @@
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
-#ifdef _MSC_VER
+#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
@@ -50,7 +50,7 @@ static const char *const FILENAMES[] = {
const char *const ENGINES = "create_project ..\\.. --use-canonical-lib-names --msvc\n";
bool fileExists(const char *name) {
-#ifdef _MSC_VER
+#ifdef _WIN32
return (GetFileAttributesA(name) != INVALID_FILE_ATTRIBUTES);
#else
return (!access(name, F_OK));
@@ -58,7 +58,7 @@ bool fileExists(const char *name) {
}
bool createDirectory(const char *name) {
-#ifdef _MSC_VER
+#ifdef _WIN32
return CreateDirectoryA(name, nullptr);
#else
return (!mkdir(name, 0755));
More information about the Scummvm-git-logs
mailing list