diff --git a/src/Magnum/Math/Frustum.h b/src/Magnum/Math/Frustum.h index 7c1e29bef..9a5f4778b 100644 --- a/src/Magnum/Math/Frustum.h +++ b/src/Magnum/Math/Frustum.h @@ -42,6 +42,11 @@ #include /** @todo remove when planes() is gone */ #endif +#ifdef CORRADE_TARGET_WINDOWS /* I so HATE windef.h */ +#undef near +#undef far +#endif + namespace Magnum { namespace Math { namespace Implementation { diff --git a/src/Magnum/Trade/CameraData.h b/src/Magnum/Trade/CameraData.h index c00ba6ac4..6c27dbed1 100644 --- a/src/Magnum/Trade/CameraData.h +++ b/src/Magnum/Trade/CameraData.h @@ -33,6 +33,11 @@ #include "Magnum/Math/Vector2.h" #include "Magnum/Trade/visibility.h" +#ifdef CORRADE_TARGET_WINDOWS /* I so HATE windef.h */ +#undef near +#undef far +#endif + namespace Magnum { namespace Trade { /**