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