FIX None macro from X11 colliding with Event::None and others

This commit is contained in:
Benoit Favre 2014-09-09 11:08:56 +02:00 committed by David Capello
parent bdd64b2c34
commit 886ff676f6

View File

@ -37,6 +37,11 @@
#endif
#elif defined(ALLEGRO_UNIX)
#include <xalleg.h>
#ifdef None
#undef None
#define X11_None 0L
#endif
#endif
#ifdef WIN32
@ -628,7 +633,7 @@ public:
XGrabPointer(_xwin.display, _xwin.window, False,
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
GrabModeAsync, GrabModeAsync,
None, None, CurrentTime);
X11_None, X11_None, CurrentTime);
#endif
}