Port PSP SDL_main to header-only + SDL_RunApp()

This commit is contained in:
Daniel Gibson 2022-12-12 19:22:17 +01:00 committed by Sam Lantinga
parent b1b3bd654d
commit 989a8ca90e
4 changed files with 90 additions and 64 deletions

View file

@ -280,7 +280,7 @@ extern DECLSPEC void SDLCALL SDL_GDKSuspendComplete(void);
#if !defined(SDL_MAIN_HANDLED) && !defined(SDL_MAIN_NOIMPL)
/* include header-only SDL_main implementations */
#if defined(__WIN32__) || defined(__GDK__) || defined(__IOS__) || defined(__TVOS__) \
|| defined(__3DS__) || defined(__NGAGE__) || defined(__PS2__)
|| defined(__3DS__) || defined(__NGAGE__) || defined(__PS2__) || defined(__PSP__)
/* platforms whichs main (-equivalent) can be implemented in plain C */
#include <SDL3/SDL_main_impl.h>