Commit 626a3c5ef75ed50a81779f4a9dec8c9864258b3b

Sam Lantinga 2022-05-21T09:58:39

Use _SDL_HAS_BUILTIN() instead of __has_builtin

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/SDL_assert.h b/include/SDL_assert.h
index 8ee76d6..6068fc7 100644
--- a/include/SDL_assert.h
+++ b/include/SDL_assert.h
@@ -51,7 +51,7 @@ assert can have unique static variables associated with it.
 /* Don't include intrin.h here because it contains C++ code */
     extern void __cdecl __debugbreak(void);
     #define SDL_TriggerBreakpoint() __debugbreak()
-#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap)
+#elif _SDL_HAS_BUILTIN(__builtin_debugtrap)
     #define SDL_TriggerBreakpoint() __builtin_debugtrap()
 #elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))) )
     #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )