Check for signal.h before using it, don't assume unix is available or required
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404401
This commit is contained in:
parent
e50ab3b341
commit
85c65600ba
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ macro can have unique static variables associated with it.
|
||||||
#define SDL_TriggerBreakpoint() __asm { int 3 }
|
#define SDL_TriggerBreakpoint() __asm { int 3 }
|
||||||
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
|
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
|
||||||
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
|
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
|
||||||
#elif defined(unix)
|
#elif defined(HAVE_SIGNAL_H)
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
|
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue