[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] verify: update __STDC_VERSION__ as per C23
From: |
Paul Eggert |
Subject: |
[PATCH] verify: update __STDC_VERSION__ as per C23 |
Date: |
Wed, 7 Dec 2022 16:35:36 -0800 |
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.38.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] verify: update __STDC_VERSION__ as per C23,
Paul Eggert <=