More effective prevention against including system's glext.h.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 20 Apr 2011 20:08:17 +0000 (21:08 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 20 Apr 2011 20:08:17 +0000 (21:08 +0100)
glext/glext.h [moved from GL/glext.h with 100% similarity]
glext/glxext.h [moved from GL/glxext.h with 100% similarity]
glext/wglext.h [moved from GL/wglext.h with 100% similarity]
glimports.hpp

similarity index 100%
rename from GL/glext.h
rename to glext/glext.h
similarity index 100%
rename from GL/glxext.h
rename to glext/glxext.h
similarity index 100%
rename from GL/wglext.h
rename to glext/wglext.h
index d3dc89b..5277a0a 100644 (file)
 
 #endif /* !_WIN32 */
 
+// Prevent including system's glext.h
+#define __glext_h_
+
 #include <GL/gl.h>
 
-#include <GL/glext.h>
+#undef __glext_h_
+
+#include "glext/glext.h"
 
 #ifndef GL_TEXTURE_INDEX_SIZE_EXT
 #define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
@@ -54,7 +59,7 @@
 
 #ifdef _WIN32
 
-#include <GL/wglext.h>
+#include "glext/wglext.h"
 
 #define GLAPIENTRY __stdcall
 
@@ -81,7 +86,7 @@ typedef struct _WGLSWAP
 #else /* !_WIN32 */
 
 #include <GL/glx.h>
-#include <GL/glext.h>
+#include "glext/glxext.h"
 
 /* Prevent collision with Trace::Bool */
 #undef Bool