Changeset - r443:d725253d3289
[Not reviewed]
master
0 1 0
tron - 20 years ago 2004-11-17 07:57:28
tron@openttd.org
(svn r652) Factorise special case for MorphOS regarding signal() handling
1 file changed with 5 insertions and 5 deletions:
sdl.c
5
5
0 comments (0 inline, 0 general)
sdl.c
Show inline comments
 
@@ -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
 
	}
 
}
0 comments (0 inline, 0 general)