Browse Source

apply force_align_arg_pointer attribute to correct version of SDL_RunApp

Ozkan Sezer 1 year ago
parent
commit
0026adffd4
2 changed files with 1 additions and 8 deletions
  1. 0 7
      src/core/SDL_runapp.c
  2. 1 1
      src/core/windows/SDL_windows.c

+ 0 - 7
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)
 {

+ 1 - 1
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