SDL: Add missing SDL_main.h includes to remaining libSDLmain implementations

From 2d0eaea1ccca94b62c53f4a7d8d7a515d7cd5a5e Mon Sep 17 00:00:00 2001
From: Daniel Gibson <[EMAIL REDACTED]>
Date: Sun, 4 Dec 2022 07:50:57 +0100
Subject: [PATCH] Add missing SDL_main.h includes to remaining libSDLmain
 implementations

this should hopefully make the automated builds work again

(this commit can probably be removed once all affected platforms are
converted to header-only SDL_main)
---
 src/main/dummy/SDL_dummy_main.c           | 1 +
 src/main/gdk/SDL_gdk_main.c               | 1 +
 src/main/n3ds/SDL_n3ds_main.c             | 1 +
 src/main/ngage/SDL_ngage_main.cpp         | 1 +
 src/main/ps2/SDL_ps2_main.c               | 1 +
 src/main/psp/SDL_psp_main.c               | 1 +
 src/main/uikit/SDL_uikit_main.c           | 1 +
 src/main/winrt/SDL_winrt_main_NonXAML.cpp | 1 +
 8 files changed, 8 insertions(+)

diff --git a/src/main/dummy/SDL_dummy_main.c b/src/main/dummy/SDL_dummy_main.c
index 3511d6559900..347968c9fec8 100644
--- a/src/main/dummy/SDL_dummy_main.c
+++ b/src/main/dummy/SDL_dummy_main.c
@@ -2,6 +2,7 @@
     SDL_dummy_main.c, placed in the public domain by Sam Lantinga  3/13/14
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #ifdef main
 #undef main
diff --git a/src/main/gdk/SDL_gdk_main.c b/src/main/gdk/SDL_gdk_main.c
index 3c38b3fd7d10..f1cc0bb410e4 100644
--- a/src/main/gdk/SDL_gdk_main.c
+++ b/src/main/gdk/SDL_gdk_main.c
@@ -19,6 +19,7 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 /* Include this so we define UNICODE properly */
 #include "../../core/windows/SDL_windows.h"
diff --git a/src/main/n3ds/SDL_n3ds_main.c b/src/main/n3ds/SDL_n3ds_main.c
index b1ce1bdbd274..03034290c305 100644
--- a/src/main/n3ds/SDL_n3ds_main.c
+++ b/src/main/n3ds/SDL_n3ds_main.c
@@ -19,6 +19,7 @@
   3. This notice may not be removed or altered from any source distribution.
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #ifdef __3DS__
 
diff --git a/src/main/ngage/SDL_ngage_main.cpp b/src/main/ngage/SDL_ngage_main.cpp
index 34b7b959dcee..ea05a4ee1f48 100644
--- a/src/main/ngage/SDL_ngage_main.cpp
+++ b/src/main/ngage/SDL_ngage_main.cpp
@@ -2,6 +2,7 @@
     SDL_ngage_main.c, originally for SDL 1.2 by Hannu Viitala
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #include <e32std.h>
 #include <e32def.h>
diff --git a/src/main/ps2/SDL_ps2_main.c b/src/main/ps2/SDL_ps2_main.c
index 98afd5bfe61f..9e97771cfd4b 100644
--- a/src/main/ps2/SDL_ps2_main.c
+++ b/src/main/ps2/SDL_ps2_main.c
@@ -2,6 +2,7 @@
     SDL_ps2_main.c, fjtrujy@gmail.com
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #ifdef __PS2__
 
diff --git a/src/main/psp/SDL_psp_main.c b/src/main/psp/SDL_psp_main.c
index 4519de5bb2bc..c05d3ec4f0be 100644
--- a/src/main/psp/SDL_psp_main.c
+++ b/src/main/psp/SDL_psp_main.c
@@ -2,6 +2,7 @@
     SDL_psp_main.c, placed in the public domain by Sam Lantinga  3/13/14
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #ifdef __PSP__
 
diff --git a/src/main/uikit/SDL_uikit_main.c b/src/main/uikit/SDL_uikit_main.c
index 448af5c088f9..2b4b204778f4 100644
--- a/src/main/uikit/SDL_uikit_main.c
+++ b/src/main/uikit/SDL_uikit_main.c
@@ -2,6 +2,7 @@
     SDL_uikit_main.c, placed in the public domain by Sam Lantinga  3/18/2019
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #if defined(__IOS__) || defined(__TVOS__)
 
diff --git a/src/main/winrt/SDL_winrt_main_NonXAML.cpp b/src/main/winrt/SDL_winrt_main_NonXAML.cpp
index e4a30dc2f558..5fc3c4a41414 100644
--- a/src/main/winrt/SDL_winrt_main_NonXAML.cpp
+++ b/src/main/winrt/SDL_winrt_main_NonXAML.cpp
@@ -2,6 +2,7 @@
     SDL_winrt_main_NonXAML.cpp, placed in the public domain by David Ludwig  3/13/14
 */
 #include <SDL3/SDL.h>
+#include <SDL3/SDL_main.h> /* until this SDL_main impl is converted to header-only.. */
 
 #include <wrl.h>