Assume _exit() is available. It may be, even if unix isn't defined.
authorSam Lantinga <slouken@libsdl.org>
Wed, 13 Jan 2010 08:30:34 +0000
changeset 3656f17ea6f49745
parent 3655 1cc7f0143c12
child 3657 eaea59cee6f2
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.
src/SDL_assert.c
     1.1 --- a/src/SDL_assert.c	Wed Jan 13 08:25:16 2010 +0000
     1.2 +++ b/src/SDL_assert.c	Wed Jan 13 08:30:34 2010 +0000
     1.3 @@ -245,10 +245,8 @@
     1.4      SDL_Quit();
     1.5  #ifdef _WINDOWS
     1.6      ExitProcess(42);
     1.7 -#elif unix || __APPLE__
     1.8 +#else
     1.9      _exit(42);
    1.10 -#else
    1.11 -    #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
    1.12  #endif
    1.13  }
    1.14      
    1.15 @@ -400,4 +398,3 @@
    1.16  }
    1.17  
    1.18  /* vi: set ts=4 sw=4 expandtab: */
    1.19 -