Anthony Liguori schrieb:
Stefan Weil wrote:
`sdl-config --cflags` defines main = SDL_main
on some platforms. One of these platforms is
Windows with mingw32.
How about adding -Umain to SDL_CFLAGS on _WIN32 and and __APPLE__?
Regards,
Anthony Liguori
I think -Dmain=SDL_main was added to the SDL CFLAGS because
the SDL implementation needs some special startup code.
Redefining main (or directly using the correct name) is typical
for windows gui applications.
-Umain would destroy this mechanism and create an executable
which won't run in the worst case.