mirror of https://github.com/OpenTTD/OpenTTD
(svn r652) Factorise special case for MorphOS regarding signal() handling
parent
4fb8338fa6
commit
2760ed80fd
10
sdl.c
10
sdl.c
|
@ -11,6 +11,10 @@
|
||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#ifdef __MORPHOS__
|
||||||
|
#define SIG_DFL (void (*)(int))0
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DYNAMICALLY_LOADED_SDL
|
#define DYNAMICALLY_LOADED_SDL
|
||||||
|
@ -149,11 +153,7 @@ static void SdlClose(uint32 x)
|
||||||
if (--_sdl_usage == 0) {
|
if (--_sdl_usage == 0) {
|
||||||
SDL_CALL SDL_Quit();
|
SDL_CALL SDL_Quit();
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
#ifndef __MORPHOS__
|
signal(SIGABRT, SIG_DFL);
|
||||||
signal(SIGABRT, SIG_DFL);
|
|
||||||
#else
|
|
||||||
signal(SIGABRT, (void (*)(int))0);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue