Fix gcc-4.1 x86_64 compability
[urcu.git] / urcu / uatomic_arch_x86.h
index dfb58763a37259b88a8962f9bd607767d5c59a3a..39ec407e58c0612458ffc82209e20fc711dec0fd 100644 (file)
 
 #include <urcu/compiler.h>
 
+#ifndef __SIZEOF_LONG__
+#if defined(__x86_64__) || defined(__amd64__)
+#define __SIZEOF_LONG__ 8
+#else
+#define __SIZEOF_LONG__ 4
+#endif
+#endif
+
 #ifndef BITS_PER_LONG
 #define BITS_PER_LONG  (__SIZEOF_LONG__ * 8)
 #endif
This page took 0.022927 seconds and 4 git commands to generate.