From 4d9bf4429f5c4bcb92ab2cbc9b2d03958354fc61 Mon Sep 17 00:00:00 2001 From: hax0kartik Date: Thu, 9 Mar 2023 12:32:45 +0530 Subject: [PATCH] DEVTOOLS: Fix create_engine compilation with mingw-w64 --- devtools/create_engine/create_engine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 #include #include -#ifdef _MSC_VER +#ifdef _WIN32 #include #else #include @@ -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));