sdl2_frt/src/main
Ryan C. Gordon f434a98c26 winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).
Otherwise, we are using the allocator before the app can set up its own hooks.

Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses
SDL_malloc, too!) to get ready to call into SDL_main.

This also makes console_wmain() call into the same routines as everything
else, so we don't have to deal with those allocations, too. Hopefully we
end up with the same results from GetCommandLine() as we do in wargv.

Fixes Bugzilla #4340.
2018-10-29 20:00:03 -04:00
..
android Removed the need for libSDL2main.a on Android, and separated JNI initialization out for other integrations 2017-08-28 14:34:15 -07:00
dummy Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
haiku Fixed whitespace 2018-09-24 11:49:25 -07:00
nacl Updated copyright for 2018 2018-01-03 10:03:25 -08:00
psp Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
windows winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc). 2018-10-29 20:00:03 -04:00
winrt WinRT: Move Windows::Foundation::Initialize to SDL2.dll, from SDL_main. 2017-10-24 13:21:11 -04:00