Mesa (master): glapi: Avoid #including gl.h

Kristian Høgsberg krh at kemper.freedesktop.org
Thu Feb 11 22:05:01 UTC 2010


Module: Mesa
Branch: master
Commit: c7ab5994ee86dc689c79df76051cf82c8b266e4d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7ab5994ee86dc689c79df76051cf82c8b266e4d

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Thu Feb 11 17:04:06 2010 -0500

glapi: Avoid #including gl.h

It's only used for a couple of integer types and and might conflict
with other client API header files.

---

 src/mesa/glapi/glapi.h |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/mesa/glapi/glapi.h b/src/mesa/glapi/glapi.h
index 47ea23e..f802a61 100644
--- a/src/mesa/glapi/glapi.h
+++ b/src/mesa/glapi/glapi.h
@@ -46,8 +46,6 @@
 
 #define GL_GLEXT_PROTOTYPES
 
-#include "GL/gl.h"
-#include "GL/glext.h"
 #include "glthread.h"
 
 
@@ -136,7 +134,7 @@ struct _glapi_table *
 _glapi_get_override_dispatch(int layer);
 
 
-extern GLuint
+extern unsigned int
 _glapi_get_dispatch_table_size(void);
 
 
@@ -148,7 +146,7 @@ extern int
 _glapi_add_dispatch( const char * const * function_names,
 		     const char * parameter_signature );
 
-extern GLint
+extern int
 _glapi_get_proc_offset(const char *funcName);
 
 
@@ -157,7 +155,7 @@ _glapi_get_proc_address(const char *funcName);
 
 
 extern const char *
-_glapi_get_proc_name(GLuint offset);
+_glapi_get_proc_name(unsigned int offset);
 
 
 #endif




More information about the mesa-commit mailing list