From 281bcac62413e17067041d35944becd55d383ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Jan 2016 19:36:08 +0100 Subject: [PATCH] Fix building for Android with standard build systems. In this case, standard doesn't mean that we can expect sane behavior. --- src/Magnum/Extensions.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Magnum/Extensions.h b/src/Magnum/Extensions.h index 78de2c84b..572a6b4af 100644 --- a/src/Magnum/Extensions.h +++ b/src/Magnum/Extensions.h @@ -33,6 +33,14 @@ namespace Magnum { +/* Standard Android build system thinks that it's okay to define unmangled + unprefixed macros. I think that whoever did that needs to be punished, + becuase I am then not able to use that identifier for extension names. + Use CORRADE_TARGET_ANDROID here instead. */ +#ifdef ANDROID +#undef ANDROID +#endif + /** @brief Compile-time information about OpenGL extensions