From 626a3c5ef75ed50a81779f4a9dec8c9864258b3b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 21 May 2022 09:58:39 -0700
Subject: [PATCH] Use _SDL_HAS_BUILTIN() instead of __has_builtin
---
include/SDL_assert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL_assert.h b/include/SDL_assert.h
index 8ee76d65956..6068fc77e68 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" )