From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- src/contrib/SDL-3.2.20/cmake/test/main_cli.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/contrib/SDL-3.2.20/cmake/test/main_cli.c (limited to 'src/contrib/SDL-3.2.20/cmake/test/main_cli.c') diff --git a/src/contrib/SDL-3.2.20/cmake/test/main_cli.c b/src/contrib/SDL-3.2.20/cmake/test/main_cli.c new file mode 100644 index 0000000..39c5ce2 --- /dev/null +++ b/src/contrib/SDL-3.2.20/cmake/test/main_cli.c @@ -0,0 +1,15 @@ +#define SDL_MAIN_HANDLED +#include +#include + +int main(int argc, char *argv[]) +{ + SDL_SetMainReady(); + if (!SDL_Init(0)) { + SDL_Log("Could not initialize SDL: %s", SDL_GetError()); + return 1; + } + SDL_Delay(100); + SDL_Quit(); + return 0; +} -- cgit v1.2.3