mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-13 14:58:14 +00:00
PortNintendo 3DS SDL_main to header-only + SDL_N3DSRunApp()
and move the #undef main and #define main SDL_main to the start/end of SDL_main_impl.h instead of repeating it in every platform implementation Thanks to SDL_N3DSRunApp we don't need the #include <3ds.h> in SDL_main_impl.h - that caused conflicts with testthread.c, because both have (different) ThreadFunc typedefs.
This commit is contained in:

committed by
Sam Lantinga

parent
2aee3e654d
commit
1de559248e
@@ -964,3 +964,6 @@ SDL_DYNAPI_PROC(const char*,SDL_GetRenderDriver,(int a),(a),return)
|
||||
#if defined(__WIN32__)
|
||||
SDL_DYNAPI_PROC(int,SDL_Win32RunApp,(SDL_main_func a, void *b),(a,b),return)
|
||||
#endif
|
||||
#if defined(__3DS__)
|
||||
SDL_DYNAPI_PROC(int,SDL_N3DSRunApp,(int a, char *b[], SDL_main_func c),(a,b,c),return)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user