소스 검색

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
Sam Lantinga 1 주 전
부모
커밋
f97e53509e
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      include/SDL3/SDL_main.h

+ 0 - 9
include/SDL3/SDL_main.h

@@ -228,15 +228,6 @@
         */
         */
         #define SDL_MAIN_AVAILABLE
         #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
 #endif /* SDL_MAIN_HANDLED */
 #endif /* SDL_MAIN_HANDLED */