I changed the xxxGetProcAddressEXT function declarations to be more
authorTed Jump <tjump@users.sourceforge.net>
Fri, 17 Sep 1999 02:44:19 +0000 (02:44 +0000)
committerTed Jump <tjump@users.sourceforge.net>
Fri, 17 Sep 1999 02:44:19 +0000 (02:44 +0000)
MSVC friendly. Brianp - could you verify that they describe and operate
as intended on Linux/ETC platforms?

include/GL/gl.h
include/GL/glu.h

index a2c42ca6a8764a93dadd7e3ff66ff75565a07b84..202a7e911271fed2f4cd97d807ddadf9696f29c8 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: gl.h,v 1.3 1999/09/16 16:48:27 brianp Exp $ */
+/* $Id: gl.h,v 1.4 1999/09/17 02:44:19 tjump Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -2196,7 +2196,8 @@ GLAPI void GLAPIENTRY glUnlockArraysEXT( void );
  * #include <GL/gl.h>
  */
 #ifdef GL_EXT_get_proc_address
-GLAPI void GLAPIENTRY (*glGetProcAddressEXT(const GLubyte *procName))();
+typedef (void (GLAPIENTRY *glProcAddress))();
+glProcAddress GLAPIENTRY glGetProcAddressEXT(const GLubyte *procName);
 #endif
 
 
index 3ed121f69cc7b304f2443c73dda932afd72e05eb..43727bcce02688e6c00f8310dc07aafe280ef1bf 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: glu.h,v 1.6 1999/09/16 16:54:22 brianp Exp $ */
+/* $Id: glu.h,v 1.7 1999/09/17 02:44:19 tjump Exp $ */
 
 /*
  * Mesa 3-D graphics library
 
 /*
  * $Log: glu.h,v $
+ * Revision 1.7  1999/09/17 02:44:19  tjump
+ * I changed the xxxGetProcAddressEXT function declarations to be more
+ * MSVC friendly. Brianp - could you verify that they describe and operate
+ * as intended on Linux/ETC platforms?
+ *
  * Revision 1.6  1999/09/16 16:54:22  brianp
  * GLU_EXT_get_proc_address clean-up
  *
@@ -503,7 +508,8 @@ GLUAPI const GLubyte* GLAPIENTRY gluGetString( GLenum name );
  * which uses this extension yet!  It may change!
  */
 #define GLU_EXT_get_proc_address 1
-GLUAPI void GLAPIENTRY (*gluGetProcAddressEXT(const GLubyte *procName))();
+typedef (GLAPIENTRY *gluProcAddress)();
+gluProcAddress GLAPIENTRY gluGetProcAddressEXT(const GLubyte *procName);