Keep the SDL_main symbol around to fix the Android Static build config.

Fix #2267 [ci only: Android, OSX] [skip appveyor]
This commit is contained in:
Yao Wei Tjong 姚伟忠 2018-03-17 16:43:20 +08:00
parent 741363e948
commit 9eed60fc73
No known key found for this signature in database
GPG Key ID: 8C8F45FBA88EEDC6

View File

@ -70,8 +70,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, in
// Android or iOS or tvOS: use SDL_main
#elif defined(__ANDROID__) || defined(IOS) || defined(TVOS)
#define URHO3D_DEFINE_MAIN(function) \
extern "C" int SDL_main(int argc, char** argv); \
int URHO3D_API SDL_main(int argc, char** argv) \
extern "C" __attribute__((visibility("default"))) int SDL_main(int argc, char** argv); \
int SDL_main(int argc, char** argv) \
{ \
Urho3D::ParseArguments(argc, argv); \
return function; \