From 034514778d06c37427696f70e0a6d04f25368eeb Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Wed, 27 Jun 2018 03:12:48 -0700 Subject: [PATCH] Avoid two more encroachments by Windows into the user's namespace. "hyper" is described here: https://sourceforge.net/p/mingw/mailman/message/8593274/ "rad1" is described here: http://lolengine.net/blog/2011/3/4/fuck-you-microsoft-near-far-macros --- sysconfig.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sysconfig.h b/sysconfig.h index be93aeb0..e5460faa 100644 --- a/sysconfig.h +++ b/sysconfig.h @@ -250,6 +250,11 @@ #define HYPERPATH "" #endif +#if ISWINDOWS +#define hyper fake_hyper // avoid "hyper" typedef in <_mingw.h> +#define WIN32_LEAN_AND_MEAN // avoid "rad1" macro in +#endif + #include #if CAP_SDL @@ -407,3 +412,7 @@ extern "C" { #if CAP_SDL union SDL_Event; #endif + +#if ISWINDOWS +#undef hyper // avoid "hyper" typedef in <_mingw.h> +#endif