Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu-defer-static.h
index 593f9a8bb18e4c04422fb5b74c18bedda0d1d84c..8575195a50b4d6530f4c56e7975d49567d4decca 100644 (file)
 
 #include <urcu/compiler.h>
 #include <urcu/arch.h>
-#include <urcu/arch_uatomic.h>
+#include <urcu/uatomic_arch.h>
 #include <urcu/list.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /*
  * Number of entries in the per-thread defer queue. Must be power of 2.
@@ -127,4 +130,8 @@ struct defer_queue {
        struct list_head list;  /* list of thread queues */
 };
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_DEFER_STATIC_H */
This page took 0.023344 seconds and 4 git commands to generate.