Commit 85c65600 authored by Sam Lantinga's avatar Sam Lantinga

Check for signal.h before using it, don't assume unix is available or required

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404401
parent e50ab3b3
...@@ -58,7 +58,7 @@ macro can have unique static variables associated with it. ...@@ -58,7 +58,7 @@ macro can have unique static variables associated with it.
#define SDL_TriggerBreakpoint() __asm { int 3 } #define SDL_TriggerBreakpoint() __asm { int 3 }
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#elif defined(unix) #elif defined(HAVE_SIGNAL_H)
#include <signal.h> #include <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP) #define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment