Fix object/function pointer inconsistencies which are a problem for gcc 3.4.2.
[freeglut] / include / GL / freeglut_ext.h
index 6a6f1f7..570f998 100644 (file)
@@ -112,7 +112,8 @@ FGAPI void    FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GL
 /*
  * Extension functions, see freeglut_ext.c
  */
-FGAPI void * FGAPIENTRY glutGetProcAddress( const char *procName );
+typedef void (*GLUTproc)();
+FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName );
 
 
 #ifdef __cplusplus