Skip to content

Commit 7c285ea

Browse files
committed
[Nokia N-Gage] Add platform to SDL.c
1 parent c9abbe5 commit 7c285ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SDL.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ SDL_COMPILE_TIME_ASSERT(SDL_MICRO_VERSION_max, SDL_MICRO_VERSION <= 999);
9393
extern SDL_NORETURN void SDL_ExitProcess(int exitcode);
9494
SDL_NORETURN void SDL_ExitProcess(int exitcode)
9595
{
96-
#if defined(SDL_PLATFORM_WINDOWS)
96+
#if defined(SDL_PLATFORM_NGAGE)
97+
extern void NGAGE_ExitApp(int exitcode);
98+
NGAGE_ExitApp(exitcode);
99+
#elif defined(SDL_PLATFORM_WINDOWS)
97100
/* "if you do not know the state of all threads in your process, it is
98101
better to call TerminateProcess than ExitProcess"
99102
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx */
@@ -714,6 +717,8 @@ const char *SDL_GetPlatform(void)
714717
return "macOS";
715718
#elif defined(SDL_PLATFORM_NETBSD)
716719
return "NetBSD";
720+
#elif defined(SDL_PLATFORM_NGAGE)
721+
return "Nokia N-Gage";
717722
#elif defined(SDL_PLATFORM_OPENBSD)
718723
return "OpenBSD";
719724
#elif defined(SDL_PLATFORM_OS2)

0 commit comments

Comments
 (0)