summaryrefslogtreecommitdiffstats
path: root/src/glu
diff options
context:
space:
mode:
authorTed Jump <[email protected]>1999-09-19 02:03:18 +0000
committerTed Jump <[email protected]>1999-09-19 02:03:18 +0000
commit725ec81ae80e024df4a5490405dbfbc598533e6e (patch)
treeac0115bd0729dea1f6ffde983f85e266b13e851e /src/glu
parent1bf9dfaf5dea61e3d33a69b0a549be54ef6d74df (diff)
More Win32 build compliance fixups
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/mesa/glu.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/glu/mesa/glu.c b/src/glu/mesa/glu.c
index e844633906f..1efc35cfd33 100644
--- a/src/glu/mesa/glu.c
+++ b/src/glu/mesa/glu.c
@@ -1,4 +1,4 @@
-/* $Id: glu.c,v 1.14 1999/09/17 12:21:53 brianp Exp $ */
+/* $Id: glu.c,v 1.15 1999/09/19 02:03:19 tjump Exp $ */
/*
* Mesa 3-D graphics library
@@ -23,6 +23,9 @@
/*
* $Log: glu.c,v $
+ * Revision 1.15 1999/09/19 02:03:19 tjump
+ * More Win32 build compliance fixups
+ *
* Revision 1.14 1999/09/17 12:21:53 brianp
* glGetProcAddressEXT changes to accomodate Win32 and non-Win32
*
@@ -381,10 +384,8 @@ const GLubyte* GLAPIENTRY gluGetString( GLenum name )
#ifdef __cplusplus
/* for BeOS R4.5 */
void GLAPIENTRY (*gluGetProcAddressEXT(const GLubyte *procName))(...)
-#elif defined(__WIN32__)
- gluProcAddress GLAPIENTRY gluGetProcAddressEXT(const GLubyte *procName)
#else
- void GLAPIENTRY (*gluGetProcAddressEXT(const GLubyte *procName))()
+ void (GLAPIENTRY *gluGetProcAddressEXT(const GLubyte *procName))()
#endif
{
struct proc {
@@ -412,11 +413,7 @@ const GLubyte* GLAPIENTRY gluGetString( GLenum name )
for (i = 0; procTable[i].address; i++) {
if (strcmp((const char *) procName, procTable[i].name) == 0)
-#ifdef __WIN32__
- return (gluProcAddress) procTable[i].address;
-#else
- return (void (*)()) procTable[i].address;
-#endif
+ return (void (GLAPIENTRY *)()) procTable[i].address;
}
return NULL;