mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
Should fix OSX.
main() must be hacked by SDL_main.
This commit is contained in:
parent
9aa7f9fff5
commit
9370ae9dee
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user