From: Gabriel Kerneis <gabr...@kerneis.info> This patch allows defining coroutine and blocking annotations with ./configure --extra-cflags instead of modifying coroutine.h.
Signed-off-by: Gabriel Kerneis <gabr...@kerneis.info> --- include/block/coroutine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/block/coroutine.h b/include/block/coroutine.h index 02ce32d..311ce2b 100644 --- a/include/block/coroutine.h +++ b/include/block/coroutine.h @@ -52,7 +52,9 @@ * .... * } */ +#ifndef coroutine_fn #define coroutine_fn +#endif /** * Mark a function that executes in blocking context @@ -75,7 +77,9 @@ * .... * } */ +#ifndef blocking_fn #define blocking_fn +#endif typedef struct Coroutine Coroutine; -- 1.8.4.rc3