Check for signal.h before using it, don't assume unix is available or required
authorSam Lantinga <slouken@libsdl.org>
Wed, 13 Jan 2010 07:32:25 +0000
changeset 3650 91460fdfe83a
parent 3649 1e74d7984d0b
child 3651 cb5b1aedb5a7
Check for signal.h before using it, don't assume unix is available or required
include/SDL_assert.h
--- a/include/SDL_assert.h	Wed Jan 13 07:25:28 2010 +0000
+++ b/include/SDL_assert.h	Wed Jan 13 07:32:25 2010 +0000
@@ -58,7 +58,7 @@
     #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