From 98d889ad624ce75a4c6f32ff7132bb4e7ddbe550 Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Fri, 20 Sep 2024 18:36:40 -0400 Subject: [PATCH] fix: use _Static_assert on GCC back to 4.6.0 I'm not sure why I had previously changed it from 4.6.0 to 6.0.0, AFAICT it is supported as far back as 4.6.0... --- hedley.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hedley.h b/hedley.h index 1eedf82..a733ae9 100644 --- a/hedley.h +++ b/hedley.h @@ -1924,7 +1924,7 @@ HEDLEY_DIAGNOSTIC_POP !defined(__cplusplus) && ( \ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ (HEDLEY_HAS_FEATURE(c_static_assert) && !defined(HEDLEY_INTEL_CL_VERSION)) || \ - HEDLEY_GCC_VERSION_CHECK(6,0,0) || \ + HEDLEY_GCC_VERSION_CHECK(4,6,0) || \ HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ defined(_Static_assert) \ )