summaryrefslogtreecommitdiff
path: root/include/GL/gl.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-09-17 12:21:36 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-09-17 12:21:36 +0000
commit1bf28c46c2d4d3f2d0a502e45abfa66d37afe733 (patch)
treef8bbb2d64ee64b1fb4d6380cb6102c97c8fb95cc /include/GL/gl.h
parent9b563507cb00399faadafb72f6fa2b60ed0c8378 (diff)
glGetProcAddressEXT changes to accomodate Win32 and non-Win32
Diffstat (limited to 'include/GL/gl.h')
-rw-r--r--include/GL/gl.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h
index e45acbc066..ff67f263a3 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -1,4 +1,4 @@
-/* $Id: gl.h,v 1.5 1999/09/17 04:25:56 tjump Exp $ */
+/* $Id: gl.h,v 1.6 1999/09/17 12:21:36 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2181,9 +2181,15 @@ GLAPI void GLAPIENTRY glUnlockArraysEXT( void );
* If you want to try it out, #define GL_EXT_get_proc_address before
* #include <GL/gl.h>
*/
+#define GL_EXT_get_proc_address 1
#ifdef GL_EXT_get_proc_address
-typedef (void (GLAPIENTRY *glProcAddress))();
-glProcAddress GLAPIENTRY glGetProcAddressEXT(const GLubyte *procName);
+#ifdef __WIN32__
+ typedef (void GLAPIENTRY *glProcAddress)();
+ glProcAddress GLAPIENTRY glGetProcAddressEXT(const GLubyte *procName);
+#else
+ /* everything but Windows */
+ GLAPI void GLAPIENTRY (*glGetProcAddressEXT(const GLubyte *procName))();
+#endif
#endif