X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Fuatomic%2Friscv.h;fp=include%2Furcu%2Fuatomic%2Friscv.h;h=1bf82d6c8ca076cd7457052090a0cd229b2894cc;hb=fd586ce5ab6fbbeb6d777d07d3e1ff4cbe547a97;hp=66a2b0644c61c65492060f2527392a0498207ab6;hpb=2c398129e9b01f74e38bcb7ad98ee78753dffefa;p=urcu.git diff --git a/include/urcu/uatomic/riscv.h b/include/urcu/uatomic/riscv.h index 66a2b06..1bf82d6 100644 --- a/include/urcu/uatomic/riscv.h +++ b/include/urcu/uatomic/riscv.h @@ -22,6 +22,12 @@ * IN THE SOFTWARE. */ +#ifndef _URCU_ARCH_UATOMIC_RISCV_H +#define _URCU_ARCH_UATOMIC_RISCV_H + +#include +#include + /* * See for details. * @@ -32,19 +38,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