On 12-12-10 10:14 AM, Jiang Jiang wrote: > On Mon, Dec 10, 2012 at 6:58 AM, Behdad Esfahbod > <[email protected]> wrote: >> commit 071d5b831e6de5f3b24160dc77b139cb040ab886 >> Author: Behdad Esfahbod <[email protected]> >> Date: Mon Dec 10 00:57:00 2012 -0500 >> >> Work around missing OSAtomicCompareAndSwapPtrBarrier() on OS X 10.4 >> >> Not sure how to handle iOS. > > There is <Availability.h> available on OS X 10.6 and iOS for checking > __IPHONE_OS_VERSION_MAX_ALLOWED and so on.
Thanks. From reading the headers themselves, my understanding was that Availability.h is for system headers to include only, and not to be used by client code. So, what would a ifdef block look like? IIUC, I have to figure out first whether Availability.h itself can be included... Also, does iOS define __APPLE__ also? I think I'll wait till someone who has a iOS SDK set up to send me a patch. behdad _______________________________________________ HarfBuzz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/harfbuzz
