From 985730d5ecdc3b464105e13e30d6df6627b0233d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 7 Dec 2022 16:34:26 -0800
Subject: [PATCH] verify: update __STDC_VERSION__ as per C23
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

This shouldn’t affect anything; it’s merely a refactoring.
* lib/verify.h (_GL_HAVE__STATIC_ASSERT1): Require
__STDC_VERSION__ to be at least 202311, instead of at least
202000.  The latter number was put in in 2019 because we didn’t
yet know C23’s __STDC_VERSION__ value.
---
 ChangeLog    | 9 +++++++++
 lib/verify.h | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index feab2d6ca4..bd0ca3592c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-12-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+	verify: update __STDC_VERSION__ as per C23
+	This shouldn’t affect anything; it’s merely a refactoring.
+	* lib/verify.h (_GL_HAVE__STATIC_ASSERT1): Require
+	__STDC_VERSION__ to be at least 202311, instead of at least
+	202000.  The latter number was put in in 2019 because we didn’t
+	yet know C23’s __STDC_VERSION__ value.
+
 2022-12-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	fts: fix race + mishandling of fstatat failure
diff --git a/lib/verify.h b/lib/verify.h
index 99af802993..5225a8e616 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -37,7 +37,7 @@
           && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 5 <= __clang_major__)))
 #  define _GL_HAVE__STATIC_ASSERT 1
 # endif
-# if (202000 <= __STDC_VERSION__ \
+# if (202311 <= __STDC_VERSION__ \
       || (!defined __STRICT_ANSI__ && 9 <= __GNUC__))
 #  define _GL_HAVE__STATIC_ASSERT1 1
 # endif
-- 
2.39.5