version 0.3.4
[urcu.git] / urcu / arch_s390.h
index 148545b2df5d44c435a96bfde6718018e4069888..d7db70d741075e6de10f29e8ccc38d2e21b24931 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _ARCH_S390_H
-#define _ARCH_S390_H
+#ifndef _URCU_ARCH_S390_H
+#define _URCU_ARCH_S390_H
 
 /*
  * Trivial definitions for the S390 architecture based on information from the
 #include <compiler.h>
 #include <urcu/config.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
 #define CONFIG_HAVE_MEM_COHERENCY
 
 #define CACHE_LINE_SIZE        128
@@ -48,8 +52,8 @@
 #endif
 
 #define mb()    __asm__ __volatile__("bcr 15,0" : : : "memory")
-#define rmb()   __asm__ __volatile__("bcr 15,0" : : : "memory");
-#define wmb()   __asm__ __volatile__("bcr 15,0" : : : "memory");
+#define rmb()   __asm__ __volatile__("bcr 15,0" : : : "memory")
+#define wmb()   __asm__ __volatile__("bcr 15,0" : : : "memory")
 #define mc()   barrier()
 #define rmc()  barrier()
 #define wmc()  barrier()
@@ -94,4 +98,8 @@ static inline cycles_t get_cycles (void)
        return cycles;
 }
 
-#endif /* _ARCH_S390_H */
+#ifdef __cplusplus 
+}
+#endif
+
+#endif /* _URCU_ARCH_S390_H */
This page took 0.02422 seconds and 4 git commands to generate.