From df5ac34dec6281b0a291fbe88d0f89d3226a2bdd Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 15 Oct 2016 21:49:21 +0530 Subject: [PATCH] meson: Don't use c_std=c99 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just use the default c_std used by the compiler. With GCC on Linux this is gnu89. Tons of errors related to time.h, signal.h, etc when using c99: FAILED: libs/gst/check/libcheck/check@sta/check_run.c.o cc '-Ilibs/gst/check/libcheck/check@sta' '-fdiagnostics-color=always' '-I../libs/gst/check/libcheck' '-Ilibs/gst/check/libcheck' '-I.' '-I../.' '-Ilibs/gst/check/libcheck/..' '-I../libs/gst/check/libcheck/..' '-pipe' '-Wall' '-Winvalid-pch' '-std=c99' '-DHAVE_CONFIG_H' '-fPIC' '-O2' '-g' '-fPIC' '-MMD' '-MQ' 'libs/gst/check/libcheck/check@sta/check_run.c.o' '-MF' 'libs/gst/check/libcheck/check@sta/check_run.c.o.d' -o 'libs/gst/check/libcheck/check@sta/check_run.c.o' -c ../libs/gst/check/libcheck/check_run.c In file included from ../libs/gst/check/libcheck/check_run.c:21:0: ../libs/gst/check/libcheck/libcompat.h:167:18: warning: ‘struct itimerspec’ declared inside parameter list will not be visible outside of this definition or declaration const struct itimerspec *new_value, struct itimerspec *old_value); ^~~~~~~~~~ ../libs/gst/check/libcheck/check_run.c:98:25: error: array type has incomplete element type ‘struct sigaction’ static struct sigaction old_action[3]; ^~~~~~~~~~ ../libs/gst/check/libcheck/check_run.c:99:25: error: array type has incomplete element type ‘struct sigaction’ static struct sigaction new_action[3]; ^~~~~~~~~~ [...] ninja: build stopped: subcommand failed. The change was originally made because gnu99 was causing issues on OS X. --- meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/meson.build b/meson.build index e90236b981..2a76d4dc9d 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,6 @@ project('gstreamer', 'c', 'cpp', version : '1.9.90', meson_version : '>= 0.35.0', default_options : [ 'warning_level=1', - 'c_std=c99', 'buildtype=debugoptimized' ]) gst_version = meson.project_version()