Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu / arch_sparc64.h
index a260e3a39abb29b94124cf838dd137a9be234849..6dcb90810f75874e35dc3f63db93b17d7a8bf027 100644 (file)
 #include <urcu/compiler.h>
 #include <urcu/config.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 #define CONFIG_HAVE_MEM_COHERENCY
 
 #define CACHE_LINE_SIZE        256
@@ -100,4 +104,8 @@ static inline cycles_t get_cycles (void)
        return 0;       /* unimplemented */
 }
 
+#ifdef __cplusplus 
+}
+#endif
+
 #endif /* _URCU_ARCH_SPARC64_H */
This page took 0.022825 seconds and 4 git commands to generate.