Merge branch 'switch_to_gnu99' into 'master'

Switching from C gnu89 to C gnu99 standard

See merge request GNOME/glib!1035
This commit is contained in:
Emmanuele Bassi 2019-10-04 14:51:10 +00:00
commit c08e7b9364
3 changed files with 5 additions and 2 deletions

View File

@ -323,7 +323,7 @@ math_h = configure_file (input: 'gnulib_math.h.in',
output: 'gnulib_math.h',
configuration: math_h_config)
gnulib_sources = ['asnprintf.c', 'printf.c', 'printf-args.c', 'printf-parse.c', 'printf-frexp.c', 'printf-frexpl.c', 'isnand.c', 'isnanl.c', 'vasnprintf.c']
gnulib_sources = ['asnprintf.c', 'printf.c', 'printf-args.c', 'printf-parse.c', 'printf-frexp.c', 'printf-frexpl.c', 'isnand.c', 'isnanl.c', 'vasnprintf.c', 'xsize.c']
if not gl_cv_func_frexp_works
gnulib_sources += ['frexp.c']

3
glib/gnulib/xsize.c Normal file
View File

@ -0,0 +1,3 @@
#include <config.h>
#define XSIZE_INLINE _GL_EXTERN_INLINE
#include "xsize.h"

View File

@ -5,7 +5,7 @@ project('glib', 'c', 'cpp',
default_options : [
'buildtype=debugoptimized',
'warning_level=1',
'c_std=gnu89'
'c_std=gnu99'
]
)