mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
Make GDK's SDL_main header-only
This commit is contained in:
committed by
Sam Lantinga
parent
2d0eaea1cc
commit
28ecbbf0b5
@@ -54,9 +54,10 @@
|
||||
#elif defined(__GDK__)
|
||||
/* On GDK, SDL provides a main function that initializes the game runtime.
|
||||
|
||||
Please note that #include'ing SDL_main.h is not enough to get a main()
|
||||
function working. You must either link against SDL3_main or, if not possible,
|
||||
call the SDL_GDKRunApp function from your entry point.
|
||||
If you prefer to write your own WinMain-function instead of having SDL
|
||||
provide one that calls your main() function,
|
||||
#define SDL_MAIN_HANDLED before #include'ing SDL_main.h
|
||||
and call the SDL_GDKRunApp function from your entry point.
|
||||
*/
|
||||
#define SDL_MAIN_NEEDED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user