Android patches
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <sys/mount.h>
|
||||
#elif (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
|
||||
#elif ((defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)) && !defined(__ANDROID__)
|
||||
#define HAS_STATVFS
|
||||
#endif
|
||||
|
||||
@@ -254,6 +254,11 @@ void cocoaSetupAutoreleasePool();
|
||||
void cocoaReleaseAutoreleasePool();
|
||||
#endif
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#define main SDL_main
|
||||
extern "C" int CDECL main(int, char *[]);
|
||||
#endif
|
||||
|
||||
int CDECL main(int argc, char *argv[])
|
||||
{
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user