From 0138979113aa3451ec73808b8cbc2750003fbcab Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 7 Jul 2011 12:27:19 -0400 Subject: [PATCH] rculfhash: add c++ ifdef Signed-off-by: Mathieu Desnoyers --- urcu/rculfhash.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 6bb1ccf..c887400 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -4,6 +4,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct rcu_ht_node { /* cache-hot for iteration */ struct rcu_ht_node *next; @@ -71,4 +75,8 @@ int ht_remove(struct rcu_ht *ht, struct rcu_ht_node *node); void ht_resize(struct rcu_ht *ht, int growth); +#ifdef __cplusplus +} +#endif + #endif /* _URCU_RCULFHASH_H */ -- 2.34.1