Allow including SDL_uikit_main.c in Apple multi-platform builds

This file just won't do anything on macOS
This commit is contained in:
Sam Lantinga 2022-09-28 00:01:54 -07:00
parent 3a6b4835f8
commit bb74af1e11
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@
/* Include the SDL main definition header */ /* Include the SDL main definition header */
#include "SDL_main.h" #include "SDL_main.h"
#if defined(__IPHONEOS__) || defined(__TVOS__)
#ifndef SDL_MAIN_HANDLED #ifndef SDL_MAIN_HANDLED
#ifdef main #ifdef main
#undef main #undef main
@ -17,4 +19,6 @@ main(int argc, char *argv[])
} }
#endif /* !SDL_MAIN_HANDLED */ #endif /* !SDL_MAIN_HANDLED */
#endif /* __IPHONEOS__ || __TVOS__ */
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */