Skip to content

Commit

Permalink
assert: Check for Clang _and_ GCC, in case they ever drop compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 19, 2017
1 parent 8917f86 commit d6f4186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_assert.h
Expand Up @@ -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 <signal.h>
Expand Down

0 comments on commit d6f4186

Please sign in to comment.