VERY experimental Nintendo Switch 2 emulator
C++
Fix Microprofile in MinGW (#2530)
Fernando Sahmkowb0fd75916a9e
diff --git a/CMakeLists.txt b/CMakeLists.txtindex ce9a290327..306959e242 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -72,8 +72,6 @@ if (NOT MSVC)if (MINGW)add_definitions(-DMINGW_HAS_SECURE_API)- # Microprofile causes crashes when launching titles on MinGW- add_definitions(-DMICROPROFILE_ENABLED=0)if (MINGW_STATIC_BUILD)add_definitions(-DQT_STATICPLUGIN)diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.hindex f45c9ba82b..384863ccc7 100644--- a/externals/microprofile/microprofile.h+++ b/externals/microprofile/microprofile.h@@ -201,7 +201,7 @@ typedef uint64_t ThreadIdType;int64_t MicroProfileGetTick();#define MP_TICK() MicroProfileGetTick()#define MP_BREAK() __debugbreak()-#define MP_THREAD_LOCAL __declspec(thread)+#define MP_THREAD_LOCAL thread_local#define MP_STRCASECMP _stricmp#define MP_GETCURRENTTHREADID() GetCurrentThreadId()typedef uint32_t ThreadIdType;