]> Savannah Git Hosting - gnulib.git/commitdiff
verify: update __STDC_VERSION__ as per C23
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Dec 2022 00:34:26 +0000 (16:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Dec 2022 00:34:26 +0000 (16:34 -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
lib/verify.h

index feab2d6ca4c1357dcd077a39e958968af2590bc7..bd0ca3592ca1fb81250a5106fdf53dfddc8668b0 100644 (file)
--- 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
index 99af802993e9af843a7c280fd1e9ce03d75b05fc..5225a8e616d0f3bc102847abb130956f051ef623 100644 (file)
@@ -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