Commit cc3bd152 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Remember not to include anything before vlc/vlc.h

(which includes config.h which defines the platform feature macros)
Also remember stdio, string and stdlib are included implicitly
parent 4a623b24
......@@ -24,9 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc_aout.h>
#include "aout_internal.h"
......
......@@ -24,9 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#ifdef HAVE_ALLOCA_H
......
......@@ -24,9 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc_interface.h>
......
......@@ -28,7 +28,6 @@
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <math.h>
......
......@@ -24,9 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#ifdef HAVE_ALLOCA_H
......
......@@ -24,9 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <string.h>
#include <vlc/vlc.h>
#include <vlc_aout.h>
#include "aout_internal.h"
......
......@@ -22,12 +22,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc_input.h>
#include <vlc_aout.h>
#include "libvlc_internal.h"
/*
* Remember to release the returned aout_instance_t since it is locked at
* the end of this function.
......
......@@ -25,16 +25,16 @@
#ifndef _LIBVLC_INTERNAL_H
#define _LIBVLC_INTERNAL_H 1
# ifdef __cplusplus
extern "C" {
# endif
#include <vlc/vlc.h>
#include <vlc/libvlc_structures.h>
#include <vlc_arrays.h>
#include <vlc_input.h>
# ifdef __cplusplus
extern "C" {
# endif
/***************************************************************************
* Internal creation and destruction functions
***************************************************************************/
......
......@@ -21,11 +21,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc_demux.h>
#include <vlc_input.h>
#include "input/input_internal.h"
#include "libvlc_internal.h"
/*
* Release the associated input thread
......
......@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "mediacontrol_internal.h"
#include <vlc/mediacontrol.h>
#include <vlc/libvlc.h>
......@@ -32,6 +31,7 @@
#include <vlc_aout.h>
#include <vlc_input.h>
#include <vlc_osd.h>
#include "mediacontrol_internal.h"
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
......
......@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "mediacontrol_internal.h"
#include <vlc/mediacontrol.h>
#include <vlc_interface.h>
......@@ -31,6 +30,7 @@
#include <vlc_vout.h>
#include <vlc_osd.h>
#include "mediacontrol_internal.h"
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
......
......@@ -25,11 +25,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc_input.h>
#include <vlc_vout.h>
#include "libvlc_internal.h"
/*
* Remember to release the returned vout_thread_t since it is locked at
* the end of this function.
......
......@@ -21,12 +21,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc_es.h>
#include <vlc_input.h>
#include <vlc_vlm.h>
#include "libvlc_internal.h"
#if 0
/* local function to be used in libvlc_vlm_show_media only */
static char* recurse_answer( char* psz_prefix, vlm_message_t *p_answer ) {
......
......@@ -27,8 +27,6 @@
*****************************************************************************/
#include <vlc/vlc.h>
#include <string.h> /* strdup() */
#include <stdlib.h>
#include <ctype.h>
......
......@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include "input_internal.h"
......
......@@ -24,7 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include "input_internal.h"
......
......@@ -26,7 +26,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc_block.h>
......
......@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include "input_internal.h"
......
......@@ -28,7 +28,6 @@
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h>
#include <vlc_input.h>
#include <vlc_es_out.h>
......
......@@ -25,11 +25,10 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <ctype.h>
#include <vlc/vlc.h>
#include <ctype.h>
#include "input_internal.h"
#include <vlc_sout.h>
......
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