From 2936f4a45d57a59215aa8aaac585e810313b3c6b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 13 Jan 2010 07:32:25 +0000 Subject: [PATCH] Check for signal.h before using it, don't assume unix is available or required --- include/SDL_assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index 3817fcfb4..d9fd95af9 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -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 #define SDL_TriggerBreakpoint() raise(SIGTRAP) #else