summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-08-14 22:54:36 +0100
committerRichard Hughes <richard@hughsie.com>2017-08-15 07:22:05 +0100
commit2be870a02497f9f66349a041a735fb2bff2a054c (patch)
tree86bb3665be1805ce3f39e07a67a66abe98cf330e
parent9df56f26f047e6f59be5265cf97eb54a41f6a94e (diff)
downloadappstream-glib-2be870a02497f9f66349a041a735fb2bff2a054c.tar.gz
build: Enable C99 support in meson.build
We use C99 features (various places in as-app-validate.c), so need to explicitly enable them in meson.build, as some compilers will not enable them automatically, and will instead error when they encounter usage of C99. Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 3fc14fc..414cf56 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project('appstream-glib', 'c',
version : '0.7.2',
license : 'LGPL-2.1+',
- default_options : ['warning_level=1'],
+ default_options : ['warning_level=1', 'c_std=c99'],
meson_version : '>=0.37.0'
)