From 7c2659314fe0d063d53812969c9ecaa84b280ca3 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 6 Dec 2024 02:00:24 +0000 Subject: [PATCH] types.h: don't undef WINAPI for mingw the undef leads to the __stdcall attribute being stripped from all functions, which in turn causes the symbols to not be found at link time, as stdcall symbols have different name mangling. --- desmume/src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/types.h b/desmume/src/types.h index a4c3b3a15..cddf2fc45 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -124,7 +124,7 @@ #endif #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #include #else