From 66be2b0aca94a837a573e450a565f1bf74a3519b Mon Sep 17 00:00:00 2001 From: das Date: Tue, 16 May 2006 07:58:09 +0000 Subject: fix building on Jaguar --- macosx/tkMacOSXFont.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 49ed451..403a903 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -35,7 +35,7 @@ * that such fonts can not be used for controls, because controls * definitely require a family id (this assertion needs testing). * - * RCS: @(#) $Id: tkMacOSXFont.c,v 1.17 2006/04/11 10:19:51 das Exp $ + * RCS: @(#) $Id: tkMacOSXFont.c,v 1.18 2006/05/16 07:58:09 das Exp $ */ #include "tkMacOSXInt.h" @@ -47,6 +47,14 @@ #endif */ +/* Define macros only available on Mac OS X 10.3 or later */ +#ifndef FixedToInt +#define FixedToInt(a) ((short)(((Fixed)(a) + fixed1/2) >> 16)) +#endif +#ifndef IntToFixed +#define IntToFixed(a) ((Fixed)(a) << 16) +#endif + /* * Problem: The sum of two parts is not the same as the whole. In particular * the width of two separately measured strings will usually be larger than -- cgit v0.12