@@ -57,12 +57,18 @@ OF_BLOCK_FIELD_IS_BYREF = 8, OF_BLOCK_FIELD_IS_WEAK = 16, OF_BLOCK_BYREF_CALLER = 128, }; +#ifdef __cplusplus +extern "C" { +#endif extern void* _Block_copy(const void*); extern void _Block_release(const void*); +#ifdef __cplusplus +} +#endif #ifndef Block_copy # define Block_copy(x) ((__typeof__(x))_Block_copy((const void*)(x))) #endif #ifndef Block_release