apply force_align_arg_pointer attribute to correct version of SDL_RunApp

This commit is contained in:
Ozkan Sezer 2023-08-05 18:10:10 +03:00
parent 77446e2029
commit 0026adffd4
2 changed files with 1 additions and 8 deletions

View File

@ -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)
{

View File

@ -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