Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu-pointer-static.h
index eb073afa18683c5a6d1a626397aef70a21678d2c..093630a084f84ba7c5917a5621ee3fe1de3af258 100644 (file)
 #include <urcu/system.h>
 #include <urcu/uatomic_arch.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 /**
  * _rcu_dereference - reads (copy) a RCU-protected pointer to a local variable
  * into a RCU read-side critical section. The pointer can later be safely
 
 #define _rcu_assign_pointer(p, v)      _rcu_set_pointer(&(p), v)
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_POINTER_STATIC_H */
This page took 0.023148 seconds and 4 git commands to generate.