Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Assume _exit() is available. It may be, even if unix isn't defined.
Browse files Browse the repository at this point in the history
If we really have to, we can add a configure check for it.
  • Loading branch information
slouken committed Jan 13, 2010
1 parent d52988d commit d2ba9fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/SDL_assert.c
Expand Up @@ -245,10 +245,8 @@ static void SDL_AbortAssertion(void)
SDL_Quit();
#ifdef _WINDOWS
ExitProcess(42);
#elif unix || __APPLE__
_exit(42);
#else
#error Please define your platform or set SDL_ASSERT_LEVEL to 0.
_exit(42);
#endif
}

Expand Down Expand Up @@ -400,4 +398,3 @@ void SDL_AssertionsQuit(void)
}

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit d2ba9fb

Please sign in to comment.