From 7b5a0a9f970aadc70c3f6ed339490c9bc1a9affb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 10 Nov 2020 13:12:10 -0500 Subject: [PATCH] uikit: Don't implement main() twice for iOS static libs. I think this was a leftover from before the two Xcode projects were merged. --- src/video/uikit/SDL_uikitappdelegate.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/video/uikit/SDL_uikitappdelegate.m b/src/video/uikit/SDL_uikitappdelegate.m index 5cc7b1e48..a77f2e0a0 100644 --- a/src/video/uikit/SDL_uikitappdelegate.m +++ b/src/video/uikit/SDL_uikitappdelegate.m @@ -43,14 +43,6 @@ static int forward_argc; static char **forward_argv; static int exit_status; -#if defined(SDL_MAIN_NEEDED) && !defined(IOS_DYLIB) -/* SDL is being built as a static library, include main() */ -int main(int argc, char *argv[]) -{ - return SDL_UIKitRunApp(argc, argv, SDL_main); -} -#endif /* SDL_MAIN_NEEDED && !IOS_DYLIB */ - int SDL_UIKitRunApp(int argc, char *argv[], SDL_main_func mainFunction) { int i;