remove compat_uatomic_cmpxchg #define from non-x86
[urcu.git] / urcu / uatomic_arch_sparc64.h
index 622fe100e8f47627b3232acd67dbe5e27bef2e80..d443d4fe54b2790492b4981948bb4ff3c0cf976d 100644 (file)
 #include <urcu/compiler.h>
 #include <urcu/system.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 #ifndef __SIZEOF_LONG__
 #ifdef __LP64__
 #define __SIZEOF_LONG__ 8
@@ -175,6 +179,8 @@ unsigned long _uatomic_add_return(void *addr, unsigned long val, int len)
 #define uatomic_inc(addr)              uatomic_add((addr), 1)
 #define uatomic_dec(addr)              uatomic_add((addr), -1)
 
-#define compat_uatomic_cmpxchg(ptr, old, _new) uatomic_cmpxchg(ptr, old, _new)
+#ifdef __cplusplus 
+}
+#endif
 
 #endif /* _URCU_ARCH_UATOMIC_PPC_H */
This page took 0.023472 seconds and 4 git commands to generate.