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

David Cole david.cole at kitware.com
Wed Jul 18 10:14:27 EDT 2007


Except...... use a different symbol than __WXMAC__ as the ifdef test. Isn't
that wxWindows specific...?


On 7/18/07, David Cole <david.cole at kitware.com> wrote:
>
> If you commit this, it will fix it on Krondor, too, where it happened to
> show up this morning.....
>
> So, go for it. It keeps us from having to hack system headers as root.
>
> :-)
>
>
> On 7/18/07, Sean McBride <sean at rogue-research.com> wrote:
>
> > On 7/17/07 11:55 PM, Francois Bertel said:
> >
> > >On midworld,
> > >I patched /System/Library/Frameworks/CoreServices.framework/Frameworks/
> > >CarbonCore.framework/Headers
> > >
> > >according to this message:
> > >
> > >http://public.kitware.com/pipermail/vtkusers/2006-July/086017.html
> > >
> > >in order to fix the following error after reinstalling Xcode 1.5 on it:
> > >
> > >http://www.vtk.org/Testing/Sites/midworld.kitware/DarwinG5-c++-carbon/
> > >20070717-0300-Nightly/BuildError.html
> >
> > 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
> > #endif
> >
> > 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
> >
> > _______________________________________________
> > vtk-developers mailing list
> > vtk-developers at vtk.org
> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20070718/ee184130/attachment.html>


More information about the vtk-developers mailing list