SDL: apply force_align_arg_pointer attribute to correct version of SDL_RunApp

From 0026adffd4f464dce5b48768b88f43de93499fc9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 5 Aug 2023 18:10:10 +0300
Subject: [PATCH] apply force_align_arg_pointer attribute to correct version of
 SDL_RunApp

---
 src/core/SDL_runapp.c          | 7 -------
 src/core/windows/SDL_windows.c | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/core/SDL_runapp.c b/src/core/SDL_runapp.c
index 2a507b30e2bd..67429bc499c3 100644
--- a/src/core/SDL_runapp.c
+++ b/src/core/SDL_runapp.c
@@ -24,13 +24,6 @@
  * If not, you can special case it here by appending || defined(__YOUR_PLATFORM__) */
 #if ( !defined(SDL_MAIN_NEEDED) && !defined(SDL_MAIN_AVAILABLE) ) || defined(__ANDROID__)
 
-#if defined(__WIN32__) || defined(__WINRT__) || defined(__GDK__)
-#include "windows/SDL_windows.h"
-#endif
-#ifndef MINGW32_FORCEALIGN
-#define MINGW32_FORCEALIGN
-#endif
-
 DECLSPEC int MINGW32_FORCEALIGN
 SDL_RunApp(int argc, char* argv[], SDL_main_func mainFunction, void * reserved)
 {
diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c
index b842622e6b39..467d4bb724f3 100644
--- a/src/core/windows/SDL_windows.c
+++ b/src/core/windows/SDL_windows.c
@@ -375,7 +375,7 @@ static int OutOfMemory(void)
     return -1;
 }
 
-DECLSPEC int SDL_RunApp(int _argc, char* _argv[], SDL_main_func mainFunction, void * reserved)
+DECLSPEC int MINGW32_FORCEALIGN SDL_RunApp(int _argc, char* _argv[], SDL_main_func mainFunction, void * reserved)
 {
 
     /* Gets the arguments with GetCommandLine, converts them to argc and argv