summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-19 12:35:32 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-19 12:39:15 (GMT)
commit011f3d1dd345500969f106093dbc6a046e3f6365 (patch)
treea67a81ec53e0c8930eb9b029653aff926250cf2f /Tests
parent1f4060442116511dddae5e322c824b92eb309e52 (diff)
downloadCMake-011f3d1dd345500969f106093dbc6a046e3f6365.zip
CMake-011f3d1dd345500969f106093dbc6a046e3f6365.tar.gz
CMake-011f3d1dd345500969f106093dbc6a046e3f6365.tar.bz2
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.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/c_std_23.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/c_std_23.c b/Tests/CompileFeatures/c_std_23.c
index 6073b552..a60a16e 100644
--- a/Tests/CompileFeatures/c_std_23.c
+++ b/Tests/CompileFeatures/c_std_23.c
@@ -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