Improve support for private platforms (#11220)

This commit is contained in:
Caleb Cornett 2024-10-15 18:02:07 -04:00 committed by GitHub
parent 66d09a1cda
commit 9af5ffcfbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 70 additions and 18 deletions

View file

@ -68,7 +68,11 @@
unless the real entry point needs to be somewhere else entirely, like Android where it's in Java code */
#if (!defined(SDL_MAIN_USE_CALLBACKS) || defined(SDL_MAIN_CALLBACK_STANDARD)) && !defined(SDL_MAIN_EXPORTED)
#if defined(SDL_PLATFORM_WINDOWS)
#if defined(SDL_PLATFORM_PRIVATE_MAIN)
/* Private platforms may have their own ideas about entry points. */
#include "SDL_main_impl_private.h"
#elif defined(SDL_PLATFORM_WINDOWS)
/* these defines/typedefs are needed for the WinMain() definition */
#ifndef WINAPI