Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu-static.h
index 97d94dc0b8817b5a87e83fafb3de9d3c6bd011b1..dec8a204166d2f2c9848227a7629c53057164958 100644 (file)
 #include <urcu/list.h>
 #include <urcu/urcu-futex.h>
 
 #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
 /*
  * 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
@@ -237,4 +241,8 @@ static inline void _rcu_read_unlock(void)
        }
 }
 
        }
 }
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_STATIC_H */
 #endif /* _URCU_STATIC_H */
This page took 0.022492 seconds and 4 git commands to generate.