From 2bf5792b404a4e5baf68f8f425762e5711172cf0 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 6 Dec 2024 01:52:32 +0000 Subject: [PATCH] path.h: add mkdir macro for mingw mingw only supports the one-argument form of old windows. fsnitroView.cpp: In function 'BOOL ViewFSNitroProc(HWND, UINT, WPARAM, LPARAM)': fsnitroView.cpp:285:31: error: too many arguments to function 'int mkdir(const char*)' mkdir(tmp.c_str(),0777); ^ --- desmume/src/path.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desmume/src/path.h b/desmume/src/path.h index 364650c4a..78b189921 100644 --- a/desmume/src/path.h +++ b/desmume/src/path.h @@ -27,6 +27,11 @@ #include "frontend/windows/winutil.h" #include "frontend/windows/resource.h" + +#if defined(__MINGW32__) +#define mkdir(A, B) mkdir(A) +#endif + #elif !defined(DESMUME_COCOA) #include #endif /* HOST_WINDOWS */