Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu.h
diff --git a/urcu.h b/urcu.h
index 69c06e409ddaf2bb95d96d27ae6d9369b777d40b..da0b295ba9d72ec21c4ea1f3291f22ad669665b2 100644 (file)
--- a/urcu.h
+++ b/urcu.h
  */
 #include <urcu-pointer.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 /*
  * Important !
  *
@@ -92,4 +96,8 @@ extern void rcu_unregister_thread(void);
  */
 extern void urcu_init(void);
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_H */
This page took 0.022539 seconds and 4 git commands to generate.