[vtk-developers] Patch for Xcode 1.5/carbon on midworld about scalbl().

Sean McBride sean at rogue-research.com
Wed Jul 18 09:50:34 EDT 2007

On 7/17/07 11:55 PM, Francois Bertel said:

>On midworld,
>I patched /System/Library/Frameworks/CoreServices.framework/Frameworks/
>according to this message:
>in order to fix the following error after reinstalling Xcode 1.5 on it:

Hi François,

Thanks for updating midworld and keeping an eye on it!

Hacking system headers is not ideal. :)  It may break other software,
and it requires root access.  Perhaps there is a better way.  I compared
the 10.3 and 10.4 SDKs looking for 'scalb' and there are many insights. 
The 10.4 SDK contains this nugget in wxPython_int.h:

#ifdef __WXMAC__  // avoid a bug in Carbon headers
#define scalb scalbn

I suggest we do the same, it is probably most correct, as it made it
into the 10.4 SDK.  Patch attached.  I can't test on 10.3, but I will
commit it anyway if no one objects.

Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20070718/155a2232/attachment-0001.txt>

More information about the vtk-developers mailing list