From ebaa30d3393815aa0f1758166517ad497571f641 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 9 Jan 2025 03:26:36 +0100 Subject: [PATCH] __debugbreak was introduced in Microsoft Visual Studio 2003 --- 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 eb37469943..0cb455984b 100644 --- a/include/SDL3/SDL_assert.h +++ b/include/SDL3/SDL_assert.h @@ -127,7 +127,7 @@ extern "C" { */ #define SDL_TriggerBreakpoint() TriggerABreakpointInAPlatformSpecificManner -#elif defined(_MSC_VER) +#elif 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()