Commit 1e22482e authored by gates's avatar gates

Removed unneeded system headers and explicitely require necessary system headers

parent e8b7d8bb
......@@ -29,8 +29,6 @@
#ifndef DIR_H_
#define DIR_H_
#include <stdint.h>
#define dir_open dir_open_posix
#define dir_close(X) X->close(X)
......
......@@ -34,14 +34,7 @@
#include "util/macro.h"
#include "util/logging.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <dirent.h>
DIR_H *dir_open_posix(const char* dirname);
......
......@@ -6,21 +6,8 @@
#include "util/macro.h"
#include "util/logging.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_LIMITS_H
#include <limits.h>
#endif
#if HAVE_DLFCN_H
#include <dlfcn.h>
#endif
// Note the dlopen takes just the name part. "aacs", internally we
// translate to "libaacs.so" "libaacs.dylib" or "aacs.dll".
......
......@@ -6,15 +6,7 @@
#include "util/macro.h"
#include "util/logging.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
FILE_H *file_open_linux(const char* filename, const char *mode);
void file_close_linux(FILE_H *file);
......
......@@ -31,13 +31,7 @@
#include "util/bits.h"
#include "clpi_parse.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#define CLPI_SIG1 ('H' << 24 | 'D' << 16 | 'M' << 8 | 'V')
#define CLPI_SIG2A ('0' << 24 | '2' << 16 | '0' << 8 | '0')
......
......@@ -32,8 +32,6 @@
#include "util/macro.h"
#include "index_parse.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
static int _parse_hdmv_obj(BITSTREAM *bs, INDX_HDMV_OBJ *hdmv)
......
......@@ -29,7 +29,6 @@
#if !defined(_INDX_PARSE_H_)
#define _INDX_PARSE_H_
#include <stdio.h>
#include <stdint.h>
typedef enum {
......
......@@ -32,8 +32,6 @@
#include "util/macro.h"
#include "mobj_parse.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#define MOBJ_SIG1 ('M' << 24 | 'O' << 16 | 'B' << 8 | 'J')
......
......@@ -29,7 +29,6 @@
#if !defined(_MOBJ_PARSE_H_)
#define _MOBJ_PARSE_H_
#include <stdio.h>
#include <stdint.h>
typedef struct {
......
......@@ -31,13 +31,8 @@
#include "util/bits.h"
#include "mpls_parse.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#define MPLS_SIG1 ('M' << 24 | 'P' << 16 | 'L' << 8 | 'S')
#define MPLS_SIG2A ('0' << 24 | '2' << 16 | '0' << 8 | '0')
......
......@@ -29,7 +29,6 @@
#if !defined(_MPLS_PARSE_H_)
#define _MPLS_PARSE_H_
#include <stdio.h>
#include <stdint.h>
#define BD_MARK_ENTRY 0x01
......
......@@ -38,16 +38,7 @@
#include "mpls_parse.h"
#include "navigation.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdint.h>
#include <string.h>
static int _filter_dup(MPLS_PL *pl_list[], int count, MPLS_PL *pl)
{
......
......@@ -32,8 +32,6 @@
#include "mpls_parse.h"
#include "clpi_parse.h"
#include <stdint.h>
#define CONNECT_NON_SEAMLESS 0
#define CONNECT_SEAMLESS 1
......
......@@ -10,24 +10,11 @@
#include "bdnav/navigation.h"
#include "bdnav/index_parse.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <stdio.h>
#ifndef USING_DLOPEN
#include <libaacs/aacs.h>
#include <libbdplus/bdplus.h>
#endif
#include <stdlib.h>
static int _open_m2ts(BLURAY *bd)
{
......
......@@ -5,9 +5,6 @@
#include "file/file.h"
#include "bdnav/navigation.h"
#include <stdint.h>
#include <unistd.h>
struct indx_root_s;
typedef int (*fptr_int)();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment