[Commits] SDL: assert: Check for Clang _and_ GCC, in case they ever drop c...

libsdl.org revision control commits-owner at libsdl.org
Fri May 19 11:51:09 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/5326f7660eee
changeset: 11016:5326f7660eee
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Fri May 19 14:49:16 2017 -0400
description:
assert: Check for Clang _and_ GCC, in case they ever drop compatibility.

diffstat:

 include/SDL_assert.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b00c4088f687 -r 5326f7660eee include/SDL_assert.h
--- a/include/SDL_assert.h	Fri May 19 12:54:17 2017 -0400
+++ b/include/SDL_assert.h	Fri May 19 14:49:16 2017 -0400
@@ -51,7 +51,7 @@
 /* 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 <signal.h>


More information about the commits mailing list