From 3d63970769b32a93061989a38a00a5b6110bc7a5 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 28 Jan 2005 05:40:55 +0000 Subject: [PATCH] FixMath fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/private.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"