From f97e53509e41a4c58406cd6a5f82b3db6506f271 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 3 Dec 2025 14:11:25 -0800
Subject: [PATCH] Removed SDL_MAIN_AVAILABLE on platforms that don't benefit
from it
We already set the main thread when creating a thread or calling SDL_Init(), and applications can call SDL_SetMainReady() themselves for special cases, so there isn't a lot of value of forcing everyone through the SDL_RunApp() flow.
Fixes https://github.com/libsdl-org/SDL/issues/14580
---
include/SDL3/SDL_main.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/SDL3/SDL_main.h b/include/SDL3/SDL_main.h
index 81a601df8f0f5..ff497a4c3d9cd 100644
--- a/include/SDL3/SDL_main.h
+++ b/include/SDL3/SDL_main.h
@@ -228,15 +228,6 @@
*/
#define SDL_MAIN_AVAILABLE
- #else
- /*
- This platform SDL provides a main function that sets up the main
- thread and calls your main function.
-
- If you provide this yourself, you may define SDL_MAIN_HANDLED
- */
- #define SDL_MAIN_AVAILABLE
-
#endif
#endif /* SDL_MAIN_HANDLED */