summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-17 07:57:28 +0000
committertron <tron@openttd.org>2004-11-17 07:57:28 +0000
commit2760ed80fdd4c7ff2847ea0a02c24258d53cf360 (patch)
tree9f0ee864344ffe5b11dd8a17dae697fc62a61577 /sdl.c
parent4fb8338fa64b6fcd0a68a726d4f7448528ede655 (diff)
downloadopenttd-2760ed80fdd4c7ff2847ea0a02c24258d53cf360.tar.xz
(svn r652) Factorise special case for MorphOS regarding signal() handling
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdl.c b/sdl.c
index 4a719d1aa..a9869603d 100644
--- a/sdl.c
+++ b/sdl.c
@@ -11,6 +11,10 @@
#ifdef UNIX
#include <signal.h>
+
+#ifdef __MORPHOS__
+ #define SIG_DFL (void (*)(int))0
+#endif
#endif
#define DYNAMICALLY_LOADED_SDL
@@ -149,11 +153,7 @@ static void SdlClose(uint32 x)
if (--_sdl_usage == 0) {
SDL_CALL SDL_Quit();
#ifdef UNIX
- #ifndef __MORPHOS__
- signal(SIGABRT, SIG_DFL);
- #else
- signal(SIGABRT, (void (*)(int))0);
- #endif
+ signal(SIGABRT, SIG_DFL);
#endif
}
}