diff --git a/wxPython/contrib/glcanvas/glcanvas.i b/wxPython/contrib/glcanvas/glcanvas.i index d8f7bdaada..306fc74acd 100644 --- a/wxPython/contrib/glcanvas/glcanvas.i +++ b/wxPython/contrib/glcanvas/glcanvas.i @@ -16,10 +16,6 @@ %{ #include "wxPython.h" -#ifdef __WXMAC__ // avoid a bug in Carbon headers -#define scalb scalbn -#endif - #ifdef __WXMSW__ #include "myglcanvas.h" #else diff --git a/wxPython/src/helpers.h b/wxPython/src/helpers.h index 4aff1d0e95..90451fd598 100644 --- a/wxPython/src/helpers.h +++ b/wxPython/src/helpers.h @@ -16,6 +16,10 @@ #include #include +//--------------------------------------------------------------------------- +#ifdef __WXMAC__ // avoid a bug in Carbon headers +#define scalb scalbn +#endif //--------------------------------------------------------------------------- typedef unsigned char byte;