Mercurial > sdl-ios-xcode
diff include/SDL_assert.h @ 3650:91460fdfe83a
Check for signal.h before using it, don't assume unix is available or required
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 13 Jan 2010 07:32:25 +0000 |
parents | 1e74d7984d0b |
children | dbd6a29e4b77 |
line wrap: on
line diff
--- 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