mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 03: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"
|
#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[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#ifdef HAVE_RARCH_MAIN_IMPLEMENTATION
|
#ifdef HAVE_RARCH_MAIN_IMPLEMENTATION
|
||||||
|
@ -46,13 +46,6 @@
|
|||||||
#include "msvc/msvc_compat.h"
|
#include "msvc/msvc_compat.h"
|
||||||
#endif
|
#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)
|
#if defined(RARCH_CONSOLE) && !defined(RARCH_PERFORMANCE_MODE)
|
||||||
#define RARCH_PERFORMANCE_MODE
|
#define RARCH_PERFORMANCE_MODE
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user