Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu-qsbr-static.h
index e49a04186104bbc2b3b769665a1fb6cb59fe7911..72d35957e802c42733ed415d871a9c4aa54a74ac 100644 (file)
 #include <urcu/list.h>
 #include <urcu/urcu-futex.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 /*
  * This code section can only be included in LGPL 2.1 compatible source code.
  * See below for the function call wrappers which can be used in code meant to
@@ -210,4 +214,8 @@ static inline void _rcu_thread_online(void)
        smp_mb();
 }
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_QSBR_STATIC_H */
This page took 0.022668 seconds and 4 git commands to generate.