[glib-networking] Explicitly select C11 language version



commit 7fad8d2cde358a3e4dafb23bdf3cf73735b867d9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Feb 7 21:07:04 2018 -0600

    Explicitly select C11 language version
    
    Instead of leaving it to the whims of fate to decide which language
    version we use, lets opt-in to modern C11, with GNU extensions disabled
    as a nod towards portability, since we are kinda-sorta GLib.
    
    This is a bit stricter than GCC's default setting (gnu11).

 meson.build |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1022f56..c2eb005 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,8 @@ project(
   'glib-networking', 'c',
   version: '2.55.2',
   license: 'LGPL2.1+',
-  meson_version: '>= 0.43.0'
+  meson_version: '>= 0.43.0',
+  default_options: ['c_std=c11']
 )
 
 prefix = get_option('prefix')


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