On 3/26/07 4:47 PM, [EMAIL PROTECTED] said: >Just I've updated ftconfig.in and ftconfig.h (for >some building system without running configure) as >following: > >#if ( defined( __APPLE__ ) && !defined( DARWIN_NO_CARBON ) ) || \ > ( defined( __MWERKS__ ) && defined( macintosh ) ) > /* no Carbon frameworks for 64bit 10.4.x */ >#include "AvailabilityMacros.h" >#if defined( __LP64__ ) && \ > ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
MAC_OS_X_VERSION_10_4 is not always defined (for example on 10.2 systems), but it is probably always defined if __LP64__ is defined. Still, this would be safer: #if defined( __LP64__ ) && \ ( MAC_OS_X_VERSION_MIN_REQUIRED <= 1040 ) or #if defined( __LP64__ ) && \ defined( MAC_OS_X_VERSION_10_4 ) && \ (MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4) ) >#define DARWIN_NO_CARBON 1 >#else >#define FT_MACINTOSH 1 >#endif >#endif > >However, I'm not sure whether 10.5.x will set default >MAC_OS_X_VERSION_MIN_REQUIRED to 10.5 (system including >Carbon) or 10.4 (Carbon-free system). Alas, I cannot discuss 10.5. But I'll just say the above checks look good to me. -- ____________________________________________________________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel