Browse Source

__debugbreak was introduced in Microsoft Visual Studio 2003

Anonymous Maarten 3 months ago
parent
commit
ebaa30d339
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/SDL3/SDL_assert.h

+ 1 - 1
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()