From d6f418641d4bfbc23d4644a2137098f6cdf979b6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 19 May 2017 14:49:16 -0400 Subject: [PATCH] assert: Check for Clang _and_ GCC, in case they ever drop compatibility. --- 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 c56d5df1a..e80de78de 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(__NACL__) && defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))) +#elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))) ) #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) #elif defined(HAVE_SIGNAL_H) #include