Make GDK's SDL_main header-only

This commit is contained in:
Daniel Gibson authored and Sam Lantinga committed 2022-12-15 08:01:01 -08:00
1 parent 2d0eaea1cc
commit 28ecbbf0b5
5 files changed
+29 -35

No files matched your search

+4 -3
View File
@@ -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