]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_USE_SYSTEM_EXTENSIONS now enables C23 Annex F
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 21:41:23 +0000 (13:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 22:38:51 +0000 (14:38 -0800)
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS):
Also define __STDC_WANT_IEC_60559_EXT__, for C23.

NEWS
doc/autoconf.texi
lib/autoconf/specific.m4

diff --git a/NEWS b/NEWS
index 7223fed6df077994fadadc822fe5cf428b2d0c02..33e1948cfe792463161573daab4148fd50636939 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,9 @@ GNU Autoconf NEWS - User visible changes.
   that you will get a confusing error message if you run autoconf on
   a configure.ac that neglects to use AC_INIT or AC_OUTPUT.
 
+*** AC_USE_SYSTEM_EXTENSIONS now enables C23 Annex F extensions
+  by defining __STDC_WANT_IEC_60559_EXT__.
+
 *** AC_SYS_LARGEFILE now arranges for 64-bit time_t if possible.
 
 *** m4sh diversions like BINSH have been renumbered.
index 7ae8ca647f2dd32206d65846760ef8b259c0aaa5..5948902f411b936b6654da975f43083acdec71e4 100644 (file)
@@ -8926,12 +8926,15 @@ Enable extensions specified by ISO/IEC TS 18661-1:2014.
 @item __STDC_WANT_IEC_60559_DFP_EXT__
 @cvindex __STDC_WANT_IEC_60559_DFP_EXT__
 Enable extensions specified by ISO/IEC TS 18661-2:2015.
+@item __STDC_WANT_IEC_60559_EXT__
+@cvindex __STDC_WANT_IEC_60559_EXT__
+Enable extensions specified by C23 Annex F.
 @item __STDC_WANT_IEC_60559_FUNCS_EXT__
 @cvindex __STDC_WANT_IEC_60559_FUNCS_EXT__
 Enable extensions specified by ISO/IEC TS 18661-4:2015.
 @item __STDC_WANT_IEC_60559_TYPES_EXT__
 @cvindex __STDC_WANT_IEC_60559_TYPES_EXT__
-Enable extensions specified by ISO/IEC TS 18661-3:2015.
+Enable extensions specified by C23 Annex H and by ISO/IEC TS 18661-3:2015.
 @item __STDC_WANT_LIB_EXT2__
 @cvindex __STDC_WANT_LIB_EXT2__
 Enable extensions specified by ISO/IEC TR 24731-2:2010.
index 0a9adba59c10e81dcbba055523cdb2ea65ad615d..576212a3264283f7dbc155c937576dc5afdf1b68 100644 (file)
@@ -545,11 +545,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
@@ -619,6 +623,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__])