Just for future visitors, the following should get most of the headers working with the recent version of GCC:
In dispatch/object.h change
typedef void (^dispatch_block_t)(void);
to
#ifdef __clang__ typedef void (^dispatch_block_t)(void); #else typedef void* dispatch_block_t; #endif
and in Availability.h change
#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
to
#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && defined(__clang__)
source share