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 365091460fdfe83a
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
     1.1 --- a/include/SDL_assert.h	Wed Jan 13 07:25:28 2010 +0000
     1.2 +++ b/include/SDL_assert.h	Wed Jan 13 07:32:25 2010 +0000
     1.3 @@ -58,7 +58,7 @@
     1.4      #define SDL_TriggerBreakpoint() __asm { int 3 }
     1.5  #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
     1.6      #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
     1.7 -#elif defined(unix)
     1.8 +#elif defined(HAVE_SIGNAL_H)
     1.9      #include <signal.h>
    1.10      #define SDL_TriggerBreakpoint() raise(SIGTRAP)
    1.11  #else