meson: use C99 as the standard
autoconf uses either C99 or Gnu99. Meson does not provide a graceful way to select gnu99 if possible or c99 (though there are several proposals currently happening to get there), so I've selected c99 as the conservative default. Without this, the compiler uses whatever it's default happens to be, which may or may not work out correctly, and hides bugs from CI that are present with c99 as the default.pull/240/head
parent
40ec08594e
commit
4a2c9c285f
|
@ -1,8 +1,9 @@
|
||||||
project('pkgconf', 'c',
|
project('pkgconf', 'c',
|
||||||
version : '1.8.0',
|
version : '1.8.0',
|
||||||
license : 'ISC',
|
license : 'ISC',
|
||||||
meson_version : '>=0.47')
|
meson_version : '>=0.47',
|
||||||
|
default_options : ['c_std=c99'],
|
||||||
|
)
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue