Commit bb74af1e1123c38fd0b39024b4f44c06fe5e2b70

Sam Lantinga 2022-09-28T00:01:54

Allow including SDL_uikit_main.c in Apple multi-platform builds This file just won't do anything on macOS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/main/uikit/SDL_uikit_main.c b/src/main/uikit/SDL_uikit_main.c
index 62cfffd..90c20d1 100644
--- a/src/main/uikit/SDL_uikit_main.c
+++ b/src/main/uikit/SDL_uikit_main.c
@@ -5,6 +5,8 @@
 /* Include the SDL main definition header */
 #include "SDL_main.h"
 
+#if defined(__IPHONEOS__) || defined(__TVOS__)
+
 #ifndef SDL_MAIN_HANDLED
 #ifdef main
 #undef main
@@ -17,4 +19,6 @@ main(int argc, char *argv[])
 }
 #endif /* !SDL_MAIN_HANDLED */
 
+#endif /* __IPHONEOS__ || __TVOS__ */
+
 /* vi: set ts=4 sw=4 expandtab: */