Skip to content

Commit

Permalink
tests: playback: include stdlib.h unconditionally
Browse files Browse the repository at this point in the history
Like we do elsewhere. And drop the check for the header.
Also remove some superfluous unistd.h includes.
  • Loading branch information
tp-m authored and GStreamer Merge Bot committed Dec 9, 2019
1 parent 72bafd4 commit ca11e82
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
1 change: 0 additions & 1 deletion meson.build
Expand Up @@ -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'],
Expand Down
6 changes: 1 addition & 5 deletions tests/icles/playback/test4.c
Expand Up @@ -19,12 +19,8 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_STDLIB_H

#include <stdlib.h> /* exit() */
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#include <gst/gst.h>

Expand Down
7 changes: 2 additions & 5 deletions tests/icles/playback/test5.c
Expand Up @@ -19,12 +19,9 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H

#include <stdlib.h> /* exit */
#endif

#include <gst/gst.h>

static GMainLoop *loop;
Expand Down
7 changes: 2 additions & 5 deletions tests/icles/playback/test6.c
Expand Up @@ -19,12 +19,9 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STDLIB_H

#include <stdlib.h> /* exit */
#endif

#include <gst/gst.h>

static void
Expand Down
2 changes: 0 additions & 2 deletions tests/icles/playback/test7.c
Expand Up @@ -19,9 +19,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* exit() */
#endif
#include <gst/gst.h>

#define UPDATE_INTERVAL 500
Expand Down

0 comments on commit ca11e82

Please sign in to comment.