Ver Fonte

SDL_TriggerBreakpoint() will default to __debugbreak() on MinGW toolchain on windows

Mohamed Shazan há 1 mês atrás
pai
commit
f4c124e4bf
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      include/SDL3/SDL_assert.h

+ 1 - 1
include/SDL3/SDL_assert.h

@@ -126,7 +126,7 @@ extern "C" {
  */
 #define SDL_TriggerBreakpoint() TriggerABreakpointInAPlatformSpecificManner
 
-#elif defined(_MSC_VER) && _MSC_VER >= 1310
+#elif defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER >= 1310)
     /* Don't include intrin.h here because it contains C++ code */
     extern void __cdecl __debugbreak(void);
     #define SDL_TriggerBreakpoint() __debugbreak()