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

@ -49,7 +49,11 @@
#include <SDL3/SDL_events.h>
#ifndef SDL_MAIN_HANDLED
#ifdef SDL_PLATFORM_WIN32
#if defined(SDL_PLATFORM_PRIVATE_MAIN)
/* Private platforms may have their own ideas about entry points. */
#include "SDL_main_private.h"
#elif defined(SDL_PLATFORM_WIN32)
/* On Windows SDL provides WinMain(), which parses the command line and passes
the arguments to your main function.