mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Fix C++ build linkage
This commit is contained in:
parent
7767b0283c
commit
83b6aeb6cc
@ -18,8 +18,6 @@
|
||||
#include "frontend.h"
|
||||
#include "../general.h"
|
||||
|
||||
#include "frontend_context.h"
|
||||
|
||||
#if defined(HAVE_MENU)
|
||||
#include "menu/menu_input_line_cb.h"
|
||||
#include "menu/menu_common.h"
|
||||
@ -31,7 +29,6 @@
|
||||
|
||||
#if defined(ANDROID)
|
||||
|
||||
#define main_entry android_app_entry
|
||||
#define returntype void
|
||||
#define returnfunc() exit(0)
|
||||
#define return_negative() return
|
||||
@ -41,12 +38,6 @@
|
||||
#define args_initial_ptr() data
|
||||
#else
|
||||
|
||||
#if defined(__APPLE__) || defined(HAVE_BB10) || defined(EMSCRIPTEN)
|
||||
#define main_entry rarch_main
|
||||
#else
|
||||
#define main_entry main
|
||||
#endif
|
||||
|
||||
#define returntype int
|
||||
#define returnfunc() return 0
|
||||
#define return_negative() return 1
|
||||
|
@ -26,11 +26,17 @@
|
||||
|
||||
#if defined(ANDROID)
|
||||
#include "platform/platform_android.h"
|
||||
#define main_entry android_app_entry
|
||||
#define args_type() struct android_app*
|
||||
#define signature() void* data
|
||||
#define signature_expand() data
|
||||
#define returntype void
|
||||
#else
|
||||
#if defined(__APPLE__) || defined(HAVE_BB10) || defined(EMSCRIPTEN)
|
||||
#define main_entry rarch_main
|
||||
#else
|
||||
#define main_entry main
|
||||
#endif
|
||||
#define args_type() void*
|
||||
#define signature() int argc, char *argv[]
|
||||
#define signature_expand() argc, argv
|
||||
|
@ -281,6 +281,9 @@ int detect_file(const char *path, char *game_name, size_t max_len,
|
||||
}
|
||||
|
||||
#ifndef RARCH_CONSOLE
|
||||
#ifndef __APPLE__
|
||||
#undef main
|
||||
#endif
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct RunInfo info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user