From: Tim-Philipp Müller Date: Sat, 7 Dec 2019 14:22:06 +0000 (+0000) Subject: tests: playback: include stdlib.h unconditionally X-Git-Tag: 1.19.3~511^2~839 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca11e82e6640b6121997e760f6ef054e42af1fa3;p=platform%2Fupstream%2Fgstreamer.git tests: playback: include stdlib.h unconditionally Like we do elsewhere. And drop the check for the header. Also remove some superfluous unistd.h includes. --- diff --git a/meson.build b/meson.build index a8d7134..ff7f1ca 100644 --- a/meson.build +++ b/meson.build @@ -115,7 +115,6 @@ check_headers = [ ['HAVE_PROCESS_H', 'process.h'], ['HAVE_SMMINTRIN_H', 'smmintrin.h'], ['HAVE_STDINT_H', 'stdint.h'], - ['HAVE_STDLIB_H', 'stdlib.h'], ['HAVE_STRINGS_H', 'strings.h'], ['HAVE_STRING_H', 'string.h'], ['HAVE_SYS_SOCKET_H', 'sys/socket.h'], diff --git a/tests/icles/playback/test4.c b/tests/icles/playback/test4.c index d036d7f..bf3d66e 100644 --- a/tests/icles/playback/test4.c +++ b/tests/icles/playback/test4.c @@ -19,12 +19,8 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_STDLIB_H + #include /* exit() */ -#endif -#ifdef HAVE_UNISTD_H -#include -#endif #include diff --git a/tests/icles/playback/test5.c b/tests/icles/playback/test5.c index b841116..0f7f7b7 100644 --- a/tests/icles/playback/test5.c +++ b/tests/icles/playback/test5.c @@ -19,12 +19,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H + #include /* exit */ -#endif + #include static GMainLoop *loop; diff --git a/tests/icles/playback/test6.c b/tests/icles/playback/test6.c index 144f99b..25f04de 100644 --- a/tests/icles/playback/test6.c +++ b/tests/icles/playback/test6.c @@ -19,12 +19,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_UNISTD_H -#include -#endif -#ifdef HAVE_STDLIB_H + #include /* exit */ -#endif + #include static void diff --git a/tests/icles/playback/test7.c b/tests/icles/playback/test7.c index b9abcb5..90544ff 100644 --- a/tests/icles/playback/test7.c +++ b/tests/icles/playback/test7.c @@ -19,9 +19,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_STDLIB_H #include /* exit() */ -#endif #include #define UPDATE_INTERVAL 500