summaryrefslogtreecommitdiffstats
path: root/src/glu/mesa/nurbs.c
diff options
context:
space:
mode:
authorKendall Bennett <[email protected]>1999-11-11 03:21:43 +0000
committerKendall Bennett <[email protected]>1999-11-11 03:21:43 +0000
commita73119234cc5d0b78ebd48c7bb7c43b755028836 (patch)
tree779e6e58ebad86bfac8f0a25b17e33cd759f3fbc /src/glu/mesa/nurbs.c
parentcb5ecb883eb3be842ef44c61df8d4b527877c858 (diff)
. Updated GL/gl.h with GLCALLACKP and GLAPIENTRYP macros for compatibility
with the IBM VisualAge C++ compiler. Eventually some more code will be needed in the headers to enable the reversal of (__stdcall*) to (*__stdcall) for the IBM compilers, however we currently build using our own header files that already handle this. . Changed instances of (GLCALLBACK*) to GLCALLBACKP for compatibility with the IBM VisualAge C++ compiler in src-glu. . Misc cleanups for warnings generated with Watcom C++ in src-glu. Compiles with 0 warnings now. . tess_hash.c: line 244 - Why is this function stubbed out? I removed the code with a #if 0 to avoid a compiler warning, but it looks dangerous.
Diffstat (limited to 'src/glu/mesa/nurbs.c')
-rw-r--r--src/glu/mesa/nurbs.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/src/glu/mesa/nurbs.c b/src/glu/mesa/nurbs.c
index 65bc6f8acb7..0ce9a449873 100644
--- a/src/glu/mesa/nurbs.c
+++ b/src/glu/mesa/nurbs.c
@@ -1,4 +1,4 @@
-/* $Id: nurbs.c,v 1.1 1999/08/19 00:55:42 jtg Exp $ */
+/* $Id: nurbs.c,v 1.2 1999/11/11 03:21:43 kendallb Exp $ */
/*
* Mesa 3-D graphics library
@@ -23,8 +23,25 @@
/*
* $Log: nurbs.c,v $
- * Revision 1.1 1999/08/19 00:55:42 jtg
- * Initial revision
+ * Revision 1.2 1999/11/11 03:21:43 kendallb
+ *
+ * . Updated GL/gl.h with GLCALLACKP and GLAPIENTRYP macros for compatibility
+ * with the IBM VisualAge C++ compiler. Eventually some more code will be
+ * needed in the headers to enable the reversal of (__stdcall*) to (*__stdcall)
+ * for the IBM compilers, however we currently build using our own header files
+ * that already handle this.
+ *
+ * . Changed instances of (GLCALLBACK*) to GLCALLBACKP for compatibility
+ * with the IBM VisualAge C++ compiler in src-glu.
+ *
+ * . Misc cleanups for warnings generated with Watcom C++ in src-glu. Compiles
+ * with 0 warnings now.
+ *
+ * . tess_hash.c: line 244 - Why is this function stubbed out? I removed the
+ * code with a #if 0 to avoid a compiler warning, but it looks dangerous.
+ *
+ * Revision 1.1.1.1 1999/08/19 00:55:42 jtg
+ * Imported sources
*
* Revision 1.14 1999/01/03 03:23:15 brianp
* now using GLAPIENTRY and GLCALLBACK keywords (Ted Jump)
@@ -600,12 +617,12 @@ void GLAPIENTRY gluNurbsSurface( GLUnurbsObj *nobj,
void GLAPIENTRY
-gluNurbsCallback( GLUnurbsObj *nobj, GLenum which, void (GLCALLBACK *fn)())
+gluNurbsCallback( GLUnurbsObj *nobj, GLenum which, void (GLCALLBACKP fn)())
{
#if defined(__CYGWIN32__) || defined(OPENSTEP)
nobj->error_callback = (void(*)(GLenum))fn;
#else
- nobj->error_callback = (void(GLCALLBACK*)(GLenum))fn;
+ nobj->error_callback = (void(GLCALLBACKP)(GLenum))fn;
#endif
if(which!=GLU_ERROR)