Should fix OSX.

main() must be hacked by SDL_main.
This commit is contained in:
Themaister 2013-02-26 08:42:59 +01:00
parent 9aa7f9fff5
commit 9370ae9dee
2 changed files with 7 additions and 7 deletions

View File

@ -16,6 +16,13 @@
#include "../general.h"
#ifdef __APPLE__
#include "SDL.h"
// OSX seems to really need -lSDLmain,
// so we include SDL.h here so it can hack our main.
// We want to use -mconsole in Win32, so we need main().
#endif
int main(int argc, char *argv[])
{
#ifdef HAVE_RARCH_MAIN_IMPLEMENTATION

View File

@ -46,13 +46,6 @@
#include "msvc/msvc_compat.h"
#endif
#ifdef __APPLE__
#include "SDL.h"
// OSX seems to really need -lSDLmain,
// so we include SDL.h here so it can hack our main.
// We want to use -mconsole in Win32, so we need main().
#endif
#if defined(RARCH_CONSOLE) && !defined(RARCH_PERFORMANCE_MODE)
#define RARCH_PERFORMANCE_MODE
#endif