[template-glib/template-glib-3-26] build: Enable C99 support in meson.build



commit 951e9db29aa40c7c1b22dcbc7147131de424f382
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Aug 21 11:27:00 2017 +0100

    build: Enable C99 support in meson.build
    
    We use C99 features (tmpl-branch-node.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.
    
    Further, enable gnu11, as per previous patches to other projects, where
    Christian wants to also be able to use GNU extensions. (See
    https://github.com/chergert/libdazzle/pull/10, for example.)
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 meson.build |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index a064ba1..8a0f002 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project('template-glib', 'c',
           version: '3.26.0',
           license: 'LGPLv2.1+',
     meson_version: '>= 0.40.1',
-  default_options: [ 'warning_level=1', 'buildtype=debugoptimized' ],
+  default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
 )
 
 version_arr = meson.project_version().split('.')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]