X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fuatomic_arch_x86.h;fp=urcu%2Fuatomic_arch_x86.h;h=39ec407e58c0612458ffc82209e20fc711dec0fd;hp=dfb58763a37259b88a8962f9bd607767d5c59a3a;hb=618c4ae180e1d9406bcad808cd0cb88addc992a1;hpb=bcb9d2bfa5a2b397d81c46e135b88bc94b99ca0f diff --git a/urcu/uatomic_arch_x86.h b/urcu/uatomic_arch_x86.h index dfb5876..39ec407 100644 --- a/urcu/uatomic_arch_x86.h +++ b/urcu/uatomic_arch_x86.h @@ -22,6 +22,14 @@ #include +#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