Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu / urcu-futex.h
index 14fb5c0b58e5444dc584d6668e3e233d3de7fe89..95598ad14ccafccebc0615f1ddc6803bf328a34c 100644 (file)
 
 #include <urcu/config.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 #define FUTEX_WAIT             0
 #define FUTEX_WAKE             1
 
@@ -55,4 +59,8 @@ extern int compat_futex_async(int *uaddr, int op, int val,
                compat_futex_async(uaddr, op, val, timeout, uaddr2, val3)
 #endif
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_FUTEX_H */
This page took 0.021933 seconds and 4 git commands to generate.