DEVTOOLS: Replace ugly SDL/MinGW hack with a cleaner hack

Instead of having main=SDL_main defined by pkg-config/sdl2-config --cflags
and undefining it everywhere, strip it in its origin.
This commit is contained in:
Orgad Shaneh 2021-08-02 22:50:40 +03:00
parent 6beb8a9225
commit 0b2ae9fa5e
38 changed files with 5 additions and 227 deletions

View file

@ -22,12 +22,6 @@
#define ENABLE_XCODE
// HACK to allow building with the SDL backend on MinGW
// see bug #3412 "TOOLS: MinGW tools building broken"
#ifdef main
#undef main
#endif // main
#if (defined(_WIN32) || defined(WIN32)) && !defined(__GNUC__)
#define USE_WIN32_API
#endif