Fix precompiler error in arch_*.h, add arch-api test
[urcu.git] / arch_x86.h
index 01b5d50bde8e174cd255a4270172b48bca55e784..e899684b56ddc50b9c43b506e6cb3ccdd6f254d0 100644 (file)
@@ -29,7 +29,7 @@
 #define CONFIG_HAVE_MEM_COHERENCY
 
 #ifndef BITS_PER_LONG
-#define BITS_PER_LONG  (sizeof(unsigned long) * 8)
+#define BITS_PER_LONG  (__SIZEOF_LONG__ * 8)
 #endif
 
 #ifdef CONFIG_HAVE_FENCE
This page took 0.022174 seconds and 4 git commands to generate.