[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 4/4] Protect coroutine_fn and blocking_fn with #i
From: |
Charlie Shepherd |
Subject: |
[Qemu-devel] [PATCH v4 4/4] Protect coroutine_fn and blocking_fn with #ifndef |
Date: |
Sun, 27 Oct 2013 22:03:54 +0100 |
From: Gabriel Kerneis <address@hidden>
This patch allows defining coroutine and blocking annotations with
./configure --extra-cflags instead of modifying coroutine.h.
Signed-off-by: Gabriel Kerneis <address@hidden>
---
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