Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git] / urcu / arch_s390.h
index bf46d3b56e6b660b0868eade0dec1ccf42a0fa69..b400376a30089ffa936ad104dca88568cb3f901d 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 <config/config.h>
+#include <urcu/config.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif 
 
 #define CONFIG_HAVE_MEM_COHERENCY
 
+#define CACHE_LINE_SIZE        128
+
+#ifndef __SIZEOF_LONG__
+#ifdef __s390x__
+#define __SIZEOF_LONG__ 8
+#else
+#define __SIZEOF_LONG__ 4
+#endif
+#endif
+
 #ifndef BITS_PER_LONG
 #define BITS_PER_LONG  (__SIZEOF_LONG__ * 8)
 #endif
@@ -84,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.02412 seconds and 4 git commands to generate.