comparison 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
comparison
equal deleted inserted replaced
3649:1e74d7984d0b 3650:91460fdfe83a
56 56
57 #if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64))) 57 #if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64)))
58 #define SDL_TriggerBreakpoint() __asm { int 3 } 58 #define SDL_TriggerBreakpoint() __asm { int 3 }
59 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) 59 #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
60 #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) 60 #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
61 #elif defined(unix) 61 #elif defined(HAVE_SIGNAL_H)
62 #include <signal.h> 62 #include <signal.h>
63 #define SDL_TriggerBreakpoint() raise(SIGTRAP) 63 #define SDL_TriggerBreakpoint() raise(SIGTRAP)
64 #else 64 #else
65 #error Please define your platform or set SDL_ASSERT_LEVEL to 0. 65 #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
66 #endif 66 #endif