浏览代码

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

(cherry picked from commit f4c124e4bf85d6232cad75c10a82a832a1c2da09)
Mohamed Shazan 1 月之前
父节点
当前提交
7b3796bc39
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()