mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-24 20:02:45 +00:00
Move some defines to frontend.h
This commit is contained in:
parent
7198d658bb
commit
5c798e6994
@ -22,6 +22,25 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
||||||
|
#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
|
||||||
|
#define returntype int
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,25 +24,6 @@
|
|||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#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
|
|
||||||
#define returntype int
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user