mirror of https://github.com/libsdl-org/SDL.git
apply force_align_arg_pointer attribute to correct version of SDL_RunApp
This commit is contained in:
parent
77446e2029
commit
0026adffd4
|
|
@ -24,13 +24,6 @@
|
||||||
* If not, you can special case it here by appending || defined(__YOUR_PLATFORM__) */
|
* 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(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
|
DECLSPEC int MINGW32_FORCEALIGN
|
||||||
SDL_RunApp(int argc, char* argv[], SDL_main_func mainFunction, void * reserved)
|
SDL_RunApp(int argc, char* argv[], SDL_main_func mainFunction, void * reserved)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ static int OutOfMemory(void)
|
||||||
return -1;
|
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
|
/* Gets the arguments with GetCommandLine, converts them to argc and argv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue