diff --git a/wxPython/contrib/glcanvas/gtk/glcanvas.cpp b/wxPython/contrib/glcanvas/gtk/glcanvas.cpp index e330e86c17..1d077db43c 100644 --- a/wxPython/contrib/glcanvas/gtk/glcanvas.cpp +++ b/wxPython/contrib/glcanvas/gtk/glcanvas.cpp @@ -55,6 +55,11 @@ extern PyObject *SWIG_newvarlink(void); #define SWIG_name "glcanvasc" #include "wxPython.h" + +#ifdef __WXMAC__ // avoid a bug in Carbon headers +#define scalb scalbn +#endif + #ifdef __WXMSW__ #include "myglcanvas.h" #else