Skip to content

Commit

Permalink
Automatically detect SDL_main_private.h
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpydog authored and icculus committed Jan 21, 2025
1 parent 10c9fbf commit abe6d9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/SDL3/SDL_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@

#endif

#if defined(__has_include)
#if __has_include("SDL_main_private.h") && __has_include("SDL_main_impl_private.h")
#define SDL_PLATFORM_PRIVATE_MAIN
#endif
#endif

#ifndef SDL_MAIN_HANDLED
#if defined(SDL_PLATFORM_PRIVATE_MAIN)
/* Private platforms may have their own ideas about entry points. */
Expand Down

0 comments on commit abe6d9d

Please sign in to comment.