rculfhash: add c++ ifdef
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jul 2011 16:27:19 +0000 (12:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jul 2011 16:27:19 +0000 (12:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfhash.h

index 6bb1ccf619b381e59f0f8d5098b643e569626233..c88740097c885beb07acb2f3d5ce80e7df94745f 100644 (file)
@@ -4,6 +4,10 @@
 #include <stdint.h>
 #include <urcu-call-rcu.h>
 
+#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 */
This page took 0.025298 seconds and 4 git commands to generate.