We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4950963 commit 4e9fc3bCopy full SHA for 4e9fc3b
1 file changed
src/rtapi/rtapi_atomic.h
@@ -18,14 +18,16 @@
18
19
#if defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) >= 0x409
20
#define RTAPI_USE_STDATOMIC
21
-#elif defined(__STDC_VERSION__) && __STDC_VERSION > 201112L
+#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
22
23
#endif
24
25
#ifdef RTAPI_USE_STDATOMIC
26
#include <stdatomic.h>
27
#else
28
29
+#warning "Old compiler has no C11 atomics. Please consider upgrading your compiler."
30
+
31
enum memory_order {
32
memory_order_relaxed,
33
memory_order_consume,
0 commit comments