]> Savannah Git Hosting - gnulib.git/commitdiff
extensions: enable some C23 Annex F functions
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Dec 2022 07:39:41 +0000 (23:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 25 Dec 2022 07:40:22 +0000 (23:40 -0800)
* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
Also define __STDC_WANT_IEC_60559_EXT__, for C23 Annex F
functions like totalorder.  This syncs from Autoconf master.

ChangeLog
m4/extensions.m4

index 91370af9648fa31c17c56f1a100fcfc4b2fcfc7d..9299d982f6d28fb882356737cf76e2f5dc606de7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2022-12-24  Paul Eggert  <eggert@cs.ucla.edu>
 
+       extensions: enable some C23 Annex F functions
+       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
+       Also define __STDC_WANT_IEC_60559_EXT__, for C23 Annex F
+       functions like totalorder.  This syncs from Autoconf master.
+
        stdnoreturn: deprecate
        C23 says <stdnoreturn.h> is obsolescent, so deprecate the
        stdnoreturn module.  I don't think it was being used anyway
index 0b3e4b5af7e97012036edeb0e53bf69d2a5a58a8..fc0d66be1a39f51dd5c831dbe477a3dfe0916c8f 100644 (file)
@@ -1,4 +1,4 @@
-# serial 22  -*- Autoconf -*-
+# serial 23  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2022 Free Software Foundation, Inc.
@@ -31,7 +31,7 @@ m4_ifndef([AC_CHECK_INCLUDES_DEFAULT],
 #      its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS
 #      invocation occurs in gl_EARLY, not in gl_INIT.
 
-m4_version_prereq([2.70.1], [], [
+m4_version_prereq([2.72], [], [
 
 # AC_USE_SYSTEM_EXTENSIONS
 # ------------------------
@@ -113,11 +113,15 @@ AH_VERBATIM([USE_SYSTEM_EXTENSIONS],
 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
 # undef __STDC_WANT_IEC_60559_DFP_EXT__
 #endif
+/* Enable extensions specified by C23 Annex F.  */
+#ifndef __STDC_WANT_IEC_60559_EXT__
+# undef __STDC_WANT_IEC_60559_EXT__
+#endif
 /* Enable extensions specified by ISO/IEC TS 18661-4:2015.  */
 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
 #endif
-/* Enable extensions specified by ISO/IEC TS 18661-3:2015.  */
+/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015.  */
 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
 #endif
@@ -187,6 +191,7 @@ dnl it should only be defined when necessary.
   AC_DEFINE([__STDC_WANT_IEC_60559_ATTRIBS_EXT__])
   AC_DEFINE([__STDC_WANT_IEC_60559_BFP_EXT__])
   AC_DEFINE([__STDC_WANT_IEC_60559_DFP_EXT__])
+  AC_DEFINE([__STDC_WANT_IEC_60559_EXT__])
   AC_DEFINE([__STDC_WANT_IEC_60559_FUNCS_EXT__])
   AC_DEFINE([__STDC_WANT_IEC_60559_TYPES_EXT__])
   AC_DEFINE([__STDC_WANT_LIB_EXT2__])