diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 191fbd8cb8..ebb875f6fc 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -42,6 +42,20 @@ #include "wx/mac/corefoundation/cfstring.h" #endif +#include +#ifndef FixedToInt +// as macro in FixMath.h for 10.3 +inline Fixed IntToFixed( int inInt ) +{ + return (((SInt32) inInt) << 16); +} + +inline int FixedToInt( Fixed inFixed ) +{ + return (((SInt32) inFixed) >> 16); +} +#endif + #if wxUSE_GUI #include "wx/window.h"