-#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."