Przeglądaj źródła

Fix build samples under Linux, closes #4

Michael Ragazzon 6 lat temu
rodzic
commit
b926671763
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      Samples/shell/include/ShellOpenGL.h

+ 5 - 0
Samples/shell/include/ShellOpenGL.h

@@ -45,6 +45,11 @@
 #include <GL/gl.h>
 #include <GL/glext.h>
 #include <GL/glu.h>
+// The None define from X.h conflicts with Rocket code base,
+// we don't use it, so it should be safe to undefine.
+#ifdef None
+  #undef None
+#endif
 #endif
 
 #endif