From 011f3d1dd345500969f106093dbc6a046e3f6365 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 19 Apr 2024 08:35:32 -0400 Subject: [PATCH] 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. --- Tests/CompileFeatures/c_std_23.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/CompileFeatures/c_std_23.c b/Tests/CompileFeatures/c_std_23.c index 6073b5526f..a60a16eb11 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