From c252e1fe4305b1f16f9407a6870a241b3f377463 Mon Sep 17 00:00:00 2001 From: Michael Fitzmayer Date: Fri, 31 Jan 2025 21:41:01 +0100 Subject: [PATCH] [Nokia N-Gage] Add platform to SDL.c --- src/SDL.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SDL.c b/src/SDL.c index e9c9fb1a2353f..e2aa659b62100 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -93,7 +93,10 @@ SDL_COMPILE_TIME_ASSERT(SDL_MICRO_VERSION_max, SDL_MICRO_VERSION <= 999); extern SDL_NORETURN void SDL_ExitProcess(int exitcode); SDL_NORETURN void SDL_ExitProcess(int exitcode) { -#if defined(SDL_PLATFORM_WINDOWS) +#if defined(SDL_PLATFORM_NGAGE) + extern void NGAGE_ExitApp(int exitcode); + NGAGE_ExitApp(exitcode); +#elif defined(SDL_PLATFORM_WINDOWS) /* "if you do not know the state of all threads in your process, it is better to call TerminateProcess than ExitProcess" https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx */ @@ -714,6 +717,8 @@ const char *SDL_GetPlatform(void) return "macOS"; #elif defined(SDL_PLATFORM_NETBSD) return "NetBSD"; +#elif defined(SDL_PLATFORM_NGAGE) + return "Nokia N-Gage"; #elif defined(SDL_PLATFORM_OPENBSD) return "OpenBSD"; #elif defined(SDL_PLATFORM_OS2)