# HG changeset patch # User Sam Lantinga # Date 1263367945 0 # Node ID 91460fdfe83a2d3d56b40c6b647ff1d13fc782aa # Parent 1e74d7984d0b9672a5f01ebd9b38a7f83b062de6 Check for signal.h before using it, don't assume unix is available or required diff -r 1e74d7984d0b -r 91460fdfe83a 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 #define SDL_TriggerBreakpoint() raise(SIGTRAP) #else