mirror of
https://github.com/Vita3K/Vita3K.git
synced 2026-07-11 01:34:23 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user