changeset 3656:f17ea6f49745

Assume _exit() is available. It may be, even if unix isn't defined. If we really have to, we can add a configure check for it.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Jan 2010 08:30:34 +0000
parents 1cc7f0143c12
children eaea59cee6f2
files src/SDL_assert.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_assert.c	Wed Jan 13 08:25:16 2010 +0000
+++ b/src/SDL_assert.c	Wed Jan 13 08:30:34 2010 +0000
@@ -245,10 +245,8 @@
     SDL_Quit();
 #ifdef _WINDOWS
     ExitProcess(42);
-#elif unix || __APPLE__
+#else
     _exit(42);
-#else
-    #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
 #endif
 }
     
@@ -400,4 +398,3 @@
 }
 
 /* vi: set ts=4 sw=4 expandtab: */
-