Tests/CompileFeatures: Fix c_std_23 case with Clang < 14
Generalize the `__STDC_VERSION__` exception previously added for AppleClang < 14 to also cover LLVM/Clang < 14. Although the two vendors do not follow the same version scheme, the major versions happen to match in this case.
This commit is contained in:
parent
1f40604421
commit
011f3d1dd3
@ -1,6 +1,5 @@
|
||||
#include "c_std.h"
|
||||
#if defined(C_STD) && C_STD <= C_STD_17 && \
|
||||
!(C_STD == C_STD_17 && defined(__apple_build_version__) && \
|
||||
defined(__clang_major__) && __clang_major__ < 14)
|
||||
!(C_STD == C_STD_17 && defined(__clang_major__) && __clang_major__ < 14)
|
||||
# error "c_std_23 not honored"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user