Check for signal.h before using it, don't assume unix is available or required

This commit is contained in:
Sam Lantinga
2010-01-13 07:32:25 +00:00
parent a112207d03
commit 2936f4a45d

View File

@@ -58,7 +58,7 @@ macro can have unique static variables associated with it.
#define SDL_TriggerBreakpoint() __asm { int 3 }
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#elif defined(unix)
#elif defined(HAVE_SIGNAL_H)
#include <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else