projects
/
platform
/
upstream
/
gcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed build error
[platform/upstream/gcd.git]
/
dispatch-1.0
/
dispatch
/
dispatch.h
diff --git
a/dispatch-1.0/dispatch/dispatch.h
b/dispatch-1.0/dispatch/dispatch.h
index
b9cee61
..
4a59eae
100644
(file)
--- a/
dispatch-1.0/dispatch/dispatch.h
+++ b/
dispatch-1.0/dispatch/dispatch.h
@@
-33,7
+33,13
@@
#include <stdbool.h>
#include <stdarg.h>
#if HAVE_UNISTD_H
#include <stdbool.h>
#include <stdarg.h>
#if HAVE_UNISTD_H
+#ifdef __BLOCKS__
+#undef __block
+#endif
#include <unistd.h>
#include <unistd.h>
+#ifdef __BLOCKS__
+#define __block __attribute__((__blocks__(byref)))
+#endif
#endif
#if defined(__cplusplus)
#endif
#if defined(__cplusplus)