Browse Source

Platform: undefine more Xlib nonsense.

Status conflicts with *Framebuffer::Status enum.
pull/51/head
Vladimír Vondruš 13 years ago
parent
commit
ae2b2cd0f6
  1. 3
      src/Platform/AbstractXApplication.h
  2. 4
      src/Platform/Implementation/GlxContextHandler.h
  3. 3
      src/Platform/WindowlessGlxApplication.h

3
src/Platform/AbstractXApplication.h

@ -35,9 +35,10 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/* undef Xlib nonsense to avoid conflicts */
#undef Always
#undef Complex
#undef None
#undef Always
#undef Status
#include "Math/Vector2.h"

4
src/Platform/Implementation/GlxContextHandler.h

@ -25,11 +25,13 @@
*/
#include "OpenGL.h"
#define Status int
#include <GL/glx.h>
/* 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"

3
src/Platform/WindowlessGlxApplication.h

@ -34,9 +34,10 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/* undef Xlib nonsense to avoid conflicts */
#undef Always
#undef Complex
#undef None
#undef Always
#undef Status
#include "Magnum.h"

Loading…
Cancel
Save