Browse Source

lib: avoid including config.h in headers

... and add it back where it was missing in a source file.

Also regroup the includes in libvlc_internal.h somewhat.
pull/162/head
Johannes Kauffmann 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
17ada6c55f
  1. 4
      lib/error.c
  2. 6
      lib/libvlc_internal.h
  3. 4
      lib/media_list_internal.h
  4. 4
      lib/media_player_internal.h
  5. 4
      lib/renderer_discoverer_internal.h

4
lib/error.c

@ -18,6 +18,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "libvlc_internal.h"
#include <stdarg.h>

6
lib/libvlc_internal.h

@ -24,17 +24,13 @@
#ifndef _LIBVLC_INTERNAL_H
#define _LIBVLC_INTERNAL_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc/libvlc.h>
#include <vlc/libvlc_dialog.h>
#include <vlc/libvlc_picture.h>
#include <vlc/libvlc_media.h>
#include <vlc/libvlc_events.h>
#include <vlc_atomic.h>
#include <vlc_atomic.h>
#include <vlc_common.h>
#include <vlc_arrays.h>
#include <vlc_threads.h>

4
lib/media_list_internal.h

@ -24,10 +24,6 @@
#ifndef _LIBVLC_MEDIA_LIST_INTERNAL_H
#define _LIBVLC_MEDIA_LIST_INTERNAL_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc/vlc.h>
#include <vlc/libvlc_media.h>

4
lib/media_player_internal.h

@ -24,10 +24,6 @@
#ifndef _LIBVLC_MEDIA_PLAYER_INTERNAL_H
#define _LIBVLC_MEDIA_PLAYER_INTERNAL_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc/vlc.h>
#include <vlc/libvlc_media.h>
#include <vlc_input.h>

4
lib/renderer_discoverer_internal.h

@ -21,10 +21,6 @@
#ifndef _LIBVLC_RENDERER_DISCOVERER_INTERNAL_H
#define _LIBVLC_RENDERER_DISCOVERER_INTERNAL_H 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_renderer_discovery.h>
vlc_renderer_item_t *

Loading…
Cancel
Save