[pacman-dev] [PATCH] Use C18 language standard
Anatol Pomozov
anatol.pomozov at gmail.com
Thu Mar 26 21:13:46 UTC 2020
C18 is the latest released version of the language spec. The toolchains support
it starting with GCC 8.1.0 and Clang 7.
Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
---
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',
--
2.26.0
More information about the pacman-dev
mailing list