Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Check for signal.h before using it, don't assume unix is available or…
Browse files Browse the repository at this point in the history
… required
  • Loading branch information
slouken committed Jan 13, 2010
1 parent 5a2e08c commit 6423559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_assert.h
Expand Up @@ -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 <signal.h>
#define SDL_TriggerBreakpoint() raise(SIGTRAP)
#else
Expand Down

0 comments on commit 6423559

Please sign in to comment.