SDL 2 don't need that if use#define SDL_MAIN_HANDLED
#include "SDL.h"
...
/* Initialize SDL */
#ifdef SDL_MAIN_HANDLED
SDL_SetMainReady(); // only when using SDL_MAIN_HANDLED
#endif
...
// SDL_MainW.c
int __cdecl main(int argc, char* argv[]);
#ifdef __POCC__
extern int __argc;
extern char **__argv;
#endif
int __stdcall WinMain(int hInstance, int hPrevInstance, char* lpszCmdLine, int nCmdShow)
{
return main(__argc, __argv);
}