On 27/3/20 7:13 am, Anatol Pomozov wrote: > C18 is the latest released version of the language spec. The toolchains > support > it starting with GCC 8.1.0 and Clang 7. >
GCC 8.1.0 - May 2, 2018 Clang 7 - 19 September 2018 So available for 18 months. Seems reasonable given the next release is a few months out minimum. But why do we need this version? What feature will be used? Is C11 enough? > Signed-off-by: Anatol Pomozov <[email protected]> > --- > configure.ac | 2 +- > meson.build | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 9db39232..84869ce5 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -183,7 +183,7 @@ AC_SUBST(LFS_CFLAGS) > > # Checks for programs. > AC_PROG_AWK > -AC_PROG_CC_C99 > +AC_PROG_CC_C18 > AC_PROG_INSTALL > AC_CHECK_PROGS([PYTHON], [python3 python], [false]) > AC_PATH_PROGS([BASH_SHELL], [bash bash4], [false]) > diff --git a/meson.build b/meson.build > index fc81fa27..2f4e7cc4 100644 > --- a/meson.build > +++ b/meson.build > @@ -3,7 +3,7 @@ project('pacman', > version : '5.2.1', > license : 'GPLv2+', > default_options : [ > - 'c_std=gnu99', > + 'c_std=c18', > 'prefix=/usr', > 'sysconfdir=/etc', > 'localstatedir=/var', >
