SDL2: compile SDL with SDL_main for Win32

This commit is contained in:
Alam Ed Arias 2016-01-29 00:33:11 -05:00
parent c47ff7b3c6
commit e8cf4cdaac
1 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,10 @@ PSP_MAIN_THREAD_STACK_SIZE_KB(256);
#include "i_ttf.h"
#endif
#if defined (_WIN32) && !defined (main)
#define SDLMAIN
#endif
#ifdef SDLMAIN
#include "SDL_main.h"
#elif defined(FORCESDLMAIN)
@ -132,7 +136,6 @@ static inline VOID MakeCodeWritable(VOID)
\return int
*/
FUNCNORETURN
#if defined (_XBOX) && defined (__GNUC__)
void XBoxStartup()
{