Move some defines to frontend.h

This commit is contained in:
twinaphex 2015-01-11 18:26:59 +01:00
parent 7198d658bb
commit 5c798e6994
2 changed files with 19 additions and 19 deletions

View File

@ -22,6 +22,25 @@
#include <stddef.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
extern "C" {
#endif

View File

@ -24,25 +24,6 @@
#include "../config.h"
#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
extern "C" {
#endif