#include <urcu/compiler.h>
#include <urcu/config.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define CONFIG_HAVE_MEM_COHERENCY
#define CACHE_LINE_SIZE 128
-#ifndef BITS_PER_LONG
-#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
-#endif
-
#ifdef CONFIG_URCU_HAVE_FENCE
#define mb() asm volatile("mfence":::"memory")
#define rmb() asm volatile("lfence":::"memory")
return ret;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _URCU_ARCH_X86_H */