diff --git a/src/Math/Matrix4.h b/src/Math/Matrix4.h index 4db6c9c71..8799c05cd 100644 --- a/src/Math/Matrix4.h +++ b/src/Math/Matrix4.h @@ -22,6 +22,11 @@ #include "Matrix.h" #include "Point3D.h" +#ifdef WIN32 /* I so HATE windows.h */ +#undef near +#undef far +#endif + namespace Magnum { namespace Math { /** diff --git a/src/SceneGraph/Camera3D.h b/src/SceneGraph/Camera3D.h index 4bd1cb309..91c8a6cd2 100644 --- a/src/SceneGraph/Camera3D.h +++ b/src/SceneGraph/Camera3D.h @@ -21,11 +21,6 @@ #include "AbstractCamera.h" -#ifdef WIN32 /* I so HATE windows.h */ -#undef near -#undef far -#endif - namespace Magnum { namespace SceneGraph { /**