X-Git-Url: http://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fuatomic%2Friscv.h;fp=include%2Furcu%2Fuatomic%2Friscv.h;h=c1ba29e2dd1f711236c8ace982f3c75a49961c6d;hp=a70ea25e107c04f2b2db371caee06243bfdbba7c;hb=4e7b1f9943cbeec405ab1994315ad374071474fb;hpb=81270292c23ff28aba1abd9a65f0624b657de82b diff --git a/include/urcu/uatomic/riscv.h b/include/urcu/uatomic/riscv.h index a70ea25..c1ba29e 100644 --- a/include/urcu/uatomic/riscv.h +++ b/include/urcu/uatomic/riscv.h @@ -8,6 +8,12 @@ * Let the compiler do it. */ +#ifndef _URCU_ARCH_UATOMIC_RISCV_H +#define _URCU_ARCH_UATOMIC_RISCV_H + +#include +#include + /* * See for details. * @@ -18,19 +24,10 @@ * - * - */ -#if defined(__GNUC__) -# error "Implementations of some atomic operations of GCC for RISC-V \ - are insufficient for sequential consistency. For this reason \ - Userspace RCU is currently marked as 'broken' for RISC-V with \ - GCC. However, it is still possible to use other toolchains." +#ifdef URCU_GCC_VERSION +# error "Implementations of some atomic operations of GCC for RISC-V are insufficient for sequential consistency. For this reason Userspace RCU is currently marked as 'broken' for RISC-V with GCC. However, it is still possible to use other toolchains." #endif -#ifndef _URCU_ARCH_UATOMIC_RISCV_H -#define _URCU_ARCH_UATOMIC_RISCV_H - -#include -#include - #ifdef __cplusplus extern "C" { #endif