vita3k: Add support for mingw-w64 (#3406)

* make the code compile on mingw-w64

* make compile with Clang 19

* make compile with GCC
This commit is contained in:
oltolm
2024-10-26 23:41:51 +02:00
committed by GitHub
parent f8893fbfe8
commit c61895e6f4
30 changed files with 76 additions and 69 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
#include <yaml-cpp/yaml.h>
#ifdef WIN32
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#else
@@ -148,7 +148,7 @@ static void gen_module_stubs(const Modules &modules) {
for (const Module &module : modules) {
const std::string module_path = "vita3k/modules/" + module.first;
#ifdef WIN32
#ifdef _WIN32
CreateDirectoryA(module_path.c_str(), nullptr);
#else
const int mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;