How can I compile a Mac Universal Binary version of the library?

CFLAGS=CXXFLAGS="-arch ppc -arch ppc 64 -arch i686 -arch x86_64"

Compiling Fl.cxx...
In file included from ../FL/x.H:41,
                from Fl.cxx:35:
../FL/mac.H: In function ‘OpaqueRgnHandle* XRectangleRegion(int, int,  
int, int)’:
../FL/mac.H:49: error: ‘NewRgn’ was not declared in this scope

I found this routine in the file Quickdraw.h:

/*
*  NewRgn()   *** DEPRECATED ***
*
*  Mac OS X threading:
*    Not thread safe
*
*  Availability:
*    Mac OS X:         in version 10.0 and later in  
ApplicationServices.framework but deprecated in 10.4
*    CarbonLib:        in CarbonLib 1.0 and later
*    Non-Carbon CFM:   in InterfaceLib 7.1 and later
*/
extern RgnHandle
NewRgn(void)                                                   
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4
 
;
''

Is there a trick to make this compile (and later link)?

Thanks,

Todd

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to