From afdaa7e3db345a2dee6cdcf61b54e285ae55167a Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 28 Aug 2007 05:43:56 +0000 Subject: [PATCH] Added ifdef needed for mac gcc compilation --- wrap/gl/glu_tesselator.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wrap/gl/glu_tesselator.h b/wrap/gl/glu_tesselator.h index cd4c09b3..0a4089cc 100644 --- a/wrap/gl/glu_tesselator.h +++ b/wrap/gl/glu_tesselator.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2007/08/25 08:43:33 cignoni +moved here callback def and added some needed opengl related casts + Revision 1.1 2007/05/14 22:23:36 m_di_benedetto First Commit. @@ -208,11 +211,15 @@ class glu_tesselator static void do_tesselation(const std::vector< std::vector > & outlines, tess_prim_data_vec & t_data) { GLUtesselator * tess = gluNewTess(); - +#ifdef __APPLE__ gluTessCallback(tess, GLU_TESS_BEGIN_DATA, (GLvoid (CALLBACK *)(...))(this_type::begin_cb)); gluTessCallback(tess, GLU_TESS_END_DATA, (GLvoid (CALLBACK *)(...))(this_type::end_cb)); gluTessCallback(tess, GLU_TESS_VERTEX_DATA, (GLvoid (CALLBACK *)(...))(this_type::vertex_cb)); - +#else + gluTessCallback(tess, GLU_TESS_BEGIN_DATA, (GLvoid (CALLBACK *)())(this_type::begin_cb)); + gluTessCallback(tess, GLU_TESS_END_DATA, (GLvoid (CALLBACK *)())(this_type::end_cb)); + gluTessCallback(tess, GLU_TESS_VERTEX_DATA, (GLvoid (CALLBACK *)())(this_type::vertex_cb)); +#endif void * polygon_data = (void *)(&t_data); GLdouble vertex[3];