remove compat_uatomic_cmpxchg #define from non-x86
[urcu.git] / urcu / uatomic_arch_s390.h
index ab7e9427613cc4f2926e3f4f0cfa98b5007152ef..614867f1d61eb055daebb17bcce0cc7b14dbb023 100644 (file)
 #include <urcu/compiler.h>
 #include <urcu/system.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 #ifndef __SIZEOF_LONG__
 #ifdef __s390x__
 #define __SIZEOF_LONG__ 8
 #ifdef COMPILER_HAVE_SHORT_MEM_OPERAND
 
 #define MEMOP_OUT(addr)        "=Q" (*(addr))
-#define MEMOP_IN       "Q" (*(addr))
+#define MEMOP_IN(addr) "Q" (*(addr))
 #define MEMOP_REF(op)  #op             /* op refer to MEMOP_IN operand */
 
 #else /* !COMPILER_HAVE_SHORT_MEM_OPERAND */
 
 #define MEMOP_OUT(addr)        "=m" (*(addr))
-#define MEMOP_IN       "a" (addr), "m" (*(addr))
+#define MEMOP_IN(addr) "a" (addr), "m" (*(addr))
 #define MEMOP_REF(op)  "0(" #op ")"    /* op refer to MEMOP_IN operand */
 
 #endif /* !COMPILER_HAVE_SHORT_MEM_OPERAND */
@@ -214,6 +218,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_UATOMIC_ARCH_S390_H */
This page took 0.02318 seconds and 4 git commands to generate.