fixed build error
[platform/upstream/gcd.git] / dispatch-1.0 / dispatch / dispatch.h
index b9cee61..4a59eae 100644 (file)
 #include <stdbool.h>
 #include <stdarg.h>
 #if HAVE_UNISTD_H
+#ifdef __BLOCKS__
+#undef __block
+#endif
 #include <unistd.h>
+#ifdef __BLOCKS__
+#define __block __attribute__((__blocks__(byref)))
+#endif
 #endif
 
 #if defined(__cplusplus)