From ae2b2cd0f6fdd00377df4a1f2f5cb44b99cee1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 7 Jan 2014 00:40:04 +0100 Subject: [PATCH] Platform: undefine more Xlib nonsense. Status conflicts with *Framebuffer::Status enum. --- src/Platform/AbstractXApplication.h | 3 ++- src/Platform/Implementation/GlxContextHandler.h | 4 +++- src/Platform/WindowlessGlxApplication.h | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Platform/AbstractXApplication.h b/src/Platform/AbstractXApplication.h index 954e9a027..62a4407d8 100644 --- a/src/Platform/AbstractXApplication.h +++ b/src/Platform/AbstractXApplication.h @@ -35,9 +35,10 @@ #include #include /* undef Xlib nonsense to avoid conflicts */ +#undef Always #undef Complex #undef None -#undef Always +#undef Status #include "Math/Vector2.h" diff --git a/src/Platform/Implementation/GlxContextHandler.h b/src/Platform/Implementation/GlxContextHandler.h index e8eb487bd..a1e99f90e 100644 --- a/src/Platform/Implementation/GlxContextHandler.h +++ b/src/Platform/Implementation/GlxContextHandler.h @@ -25,11 +25,13 @@ */ #include "OpenGL.h" +#define Status int #include /* undef Xlib nonsense to avoid conflicts */ +#undef Always #undef Complex #undef None -#undef Always +#undef Status #include "Platform/AbstractXApplication.h" #include "Platform/Implementation/AbstractContextHandler.h" diff --git a/src/Platform/WindowlessGlxApplication.h b/src/Platform/WindowlessGlxApplication.h index dd5ec4193..8088b06d9 100644 --- a/src/Platform/WindowlessGlxApplication.h +++ b/src/Platform/WindowlessGlxApplication.h @@ -34,9 +34,10 @@ #include #include /* undef Xlib nonsense to avoid conflicts */ +#undef Always #undef Complex #undef None -#undef Always +#undef Status #include "Magnum.h"