Automatically detect SDL_main_private.h
This commit is contained in:
parent
10c9fbf411
commit
abe6d9db97
1 changed files with 6 additions and 0 deletions
|
@ -133,6 +133,12 @@
|
||||||
|
|
||||||
#endif
|
#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
|
#ifndef SDL_MAIN_HANDLED
|
||||||
#if defined(SDL_PLATFORM_PRIVATE_MAIN)
|
#if defined(SDL_PLATFORM_PRIVATE_MAIN)
|
||||||
/* Private platforms may have their own ideas about entry points. */
|
/* Private platforms may have their own ideas about entry points. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue