X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fuatomic_arch_x86.h;h=b57569877a05a9e126f5dab037e3ca99cdb77f45;hp=8e0f0a80e67eba76e9a30d4d709e8cc10a42c70a;hb=36bc70a84250927ba68d5096a0a9740aec157f9b;hpb=53b8ed6836363dc7c5a5356e01609bdaac4868e2 diff --git a/urcu/uatomic_arch_x86.h b/urcu/uatomic_arch_x86.h index 8e0f0a8..b575698 100644 --- a/urcu/uatomic_arch_x86.h +++ b/urcu/uatomic_arch_x86.h @@ -23,6 +23,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #ifndef __SIZEOF_LONG__ #if defined(__x86_64__) || defined(__amd64__) #define __SIZEOF_LONG__ 8 @@ -478,4 +482,8 @@ extern unsigned long _compat_uatomic_xchg(void *addr, #define uatomic_inc(addr) UATOMIC_COMPAT(inc(addr)) #define uatomic_dec(addr) UATOMIC_COMPAT(dec(addr)) +#ifdef __cplusplus +} +#endif + #endif /* _URCU_ARCH_UATOMIC_X86_H */