> > Having slept over it, I think useless to put > > #ifndef __AVAILABILITYMACROS__ > > #include <AvailabilityMacros.h> > > #endif > > in file FL/mac.H, because Carbon.h will have included this=20 > > header file. > > The rest, though, defining MAC_OS_X_VERSION_10_3 and friends > > if not yet defined, is useful as Ian's experience told us. > > Yes, I think so too - though I still think we are missing something for > CGFloat...
And another thing: the new stuff, defining MAC_OS_X_VERSION_10_3 and friends, for FL/mac.H is to be put after #include <config.h> rather than after #include <Carbon/Carbon.h> as I wrote before. Thus, config.h will define __APPLE_COCOA__ used by the new stuff. I'm sorry to keep asking for changes, but I don't have 10.4 at hand, so can't really try things properly. I had checked that Xcode builds with 10.4 SDK do work, but make builds on 10.4 OS are yet another setup. While we are here, a cleaner Fl_cocoa.mm would be obtained with <NSWindowDelegate, NSApplicationDelegate> at line 1259 instead of just <NSWindowDelegate> (this is very cosmetic). I'll see now what to do for CGFloat. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
