Skip to content

Commit

Permalink
Fix test of __STDC_VERSION__ macro to identify C11+.
Browse files Browse the repository at this point in the history
  • Loading branch information
BsAtHome committed Dec 19, 2024
1 parent 058f77c commit 04fe8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtapi/rtapi_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#if defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) >= 0x409
#define RTAPI_USE_STDATOMIC
#elif defined(__STDC_VERSION__) && __STDC_VERSION > 201112L
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#define RTAPI_USE_STDATOMIC
#endif

Expand Down

0 comments on commit 04fe8ab

Please sign in to comment.