Explorar el Código

Try fixing problems from the None macro in X11 (ugh)

Michael Ragazzon hace 6 años
padre
commit
384b03b03c
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      Samples/shell/include/x11/InputX11.h

+ 7 - 0
Samples/shell/include/x11/InputX11.h

@@ -30,6 +30,13 @@
 #define INPUTX11_H
 
 #include <X11/Xlib.h>
+
+// The None define from X.h conflicts with RmlUi code base,
+// use the constant 0L instead where necessary
+#ifdef None
+  #undef None
+#endif
+
 #include "Input.h"
 
 /**