aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch
blob: 6a1bacedcac7ea3211b721a3fe8f8e2fd2ed38d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: OSX-sdk/usr/include/dispatch/object.h
===================================================================
--- OSX-sdk.orig/usr/include/dispatch/object.h
+++ OSX-sdk/usr/include/dispatch/object.h
@@ -140,7 +140,11 @@ typedef union {
  * Instead, the block literal must be copied to the heap with the Block_copy()
  * function or by sending it a -[copy] message.
  */
+#if defined(__clang__)
 typedef void (^dispatch_block_t)(void);
+#else
+typedef void* dispatch_block_t;
+#endif
 
 __BEGIN_DECLS