summaryrefslogtreecommitdiff
path: root/include
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
commitd629bb428cc5687a26c6bbd3618d967959c5455c (patch)
treeb2c7ff3a1e915fcc34cb52566985fa726de07535 /include
parent75d7ac4a75e6f3945414e4c120f309ad572ea4a0 (diff)
downloadglu-d629bb428cc5687a26c6bbd3618d967959c5455c.tar.gz
glGetProcAddressEXT changes to accomodate Win32 and non-Win32
Diffstat (limited to 'include')
-rw-r--r--include/GL/glu.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/GL/glu.h b/include/GL/glu.h
index 43727bc..01d630e 100644
--- a/include/GL/glu.h
+++ b/include/GL/glu.h
@@ -1,4 +1,4 @@
-/* $Id: glu.h,v 1.7 1999/09/17 02:44:19 tjump Exp $ */
+/* $Id: glu.h,v 1.8 1999/09/17 12:21:36 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -23,6 +23,9 @@
/*
* $Log: glu.h,v $
+ * Revision 1.8 1999/09/17 12:21:36 brianp
+ * glGetProcAddressEXT changes to accomodate Win32 and non-Win32
+ *
* 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
@@ -508,9 +511,12 @@ GLUAPI const GLubyte* GLAPIENTRY gluGetString( GLenum name );
* which uses this extension yet! It may change!
*/
#define GLU_EXT_get_proc_address 1
-typedef (GLAPIENTRY *gluProcAddress)();
-gluProcAddress GLAPIENTRY gluGetProcAddressEXT(const GLubyte *procName);
-
+#ifdef __WIN32__
+ typedef (void (GLAPIENTRY *gluProcAddress))();
+ gluProcAddress GLAPIENTRY gluGetProcAddressEXT(const GLubyte *procName);
+#else
+ GLUAPI void GLAPIENTRY (*gluGetProcAddressEXT(const GLubyte *procName))();
+#endif