From 7b3796bc39c9e67c8ae6f2d4cc93f54a229c65a2 Mon Sep 17 00:00:00 2001 From: Mohamed Shazan Date: Sat, 9 Aug 2025 04:50:59 +0530 Subject: [PATCH] SDL_TriggerBreakpoint() will default to __debugbreak() on MinGW toolchain on windows (cherry picked from commit f4c124e4bf85d6232cad75c10a82a832a1c2da09) --- include/SDL3/SDL_assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_assert.h b/include/SDL3/SDL_assert.h index 053af13b43..3fa6bdc936 100644 --- a/include/SDL3/SDL_assert.h +++ b/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()