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

@ -23,12 +23,6 @@
// Disable symbol overrides so that we can use system headers.
#define FORBIDDEN_SYMBOL_ALLOW_ALL
// HACK to allow building with the SDL backend on MinGW
// see bug #3412 "TOOLS: MinGW tools building broken"
#ifdef main
#undef main
#endif // main
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>