From dbcf800353344e1b705aca878895004130fe76ed Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 25 Jan 2019 09:57:08 +0100 Subject: [PATCH] Yet another compilation fix on OSX --- src/slic3r/GUI/GLCanvas3D.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 8b0af67b7..4d14fca4b 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -6558,7 +6558,11 @@ public: #ifdef _MSC_VER typedef void (__stdcall *_GLUfuncptr)(void); #else /* _MSC_VER */ - typedef void (GLAPIENTRYP _GLUfuncptr)(void); + #ifdef GLAPIENTRYP + typedef void (GLAPIENTRYP _GLUfuncptr)(void); + #else /* GLAPIENTRYP */ + typedef void (*_GLUfuncptr)(void); + #endif #endif /* _MSC_VER */ #endif /* _GLUfuncptr */ gluTessCallback(tess, GLU_TESS_BEGIN, (_GLUfuncptr)tessBeginCB);