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

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>
......
......@@ -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"
......
......@@ -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"
......
......@@ -27,7 +27,6 @@
* This file contains functions to dectect subtitle files.
*/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc_input.h>
#include <vlc_charset.h>
......
......@@ -29,7 +29,6 @@
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
#include <ctype.h> /* tolower() */
#include <assert.h>
......
......@@ -32,9 +32,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free(), strtol() */
#include <stdio.h> /* FILE */
#include <string.h> /* strerror() */
#include <vlc/vlc.h>
......
/*****************************************************************************
* intf_eject.c: CD/DVD-ROM ejection handling functions
*****************************************************************************
* Copyright (C) 2001-2004 the VideoLAN team
* $Id$
*
* Authors: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command
* Jon Lech Johansen <jon-vl@nanocrew.net> for Darwin
* Gildas Bazin <gbazin@netcourrier.com> for Win32
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/**
* \file
* This file contain functions to eject CD and DVD drives
*/
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
......@@ -64,7 +30,7 @@
# include <linux/cdrom.h>
# if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)
# include <linux/ucdrom.h>
include <linux/ucdrom.h>
# endif
# include <scsi/scsi.h>
......
......@@ -24,8 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include "vlc_block.h"
......
......@@ -22,12 +22,10 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <string.h> /* strdup(), strstr() */
#include <stdlib.h> /* free() */
#include <dirent.h> /* *dir() */
#include <vlc/vlc.h>
#include "../libvlc.h"
#include <dirent.h> /* *dir() */
#include <CoreFoundation/CoreFoundation.h>
......
/*****************************************************************************
* events.c: events interface
* This library provides an interface to the send and receive events.
* It is more lightweight than variable based callback.
* Methode
*****************************************************************************
* Copyright (C) 1998-2005 the VideoLAN team
* $Id$
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.org >
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
......@@ -30,9 +7,6 @@
#include <vlc/vlc.h>
#include <stdio.h> /* required */
#include <stdlib.h> /* malloc() */
#include <assert.h>
#include <vlc_events.h>
......
......@@ -30,10 +30,7 @@
#include <vlc/vlc.h>
#include <stdio.h> /* required */
#include <stdarg.h> /* va_list for BSD */
#include <stdlib.h> /* malloc() */
#include <string.h> /* strerror() */
#ifdef HAVE_FCNTL_H
# include <fcntl.h> /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
......
......@@ -31,9 +31,7 @@
#include <vlc/vlc.h>
#include <stdio.h> /* sprintf() */
#include <time.h> /* clock_gettime(), clock_nanosleep() */
#include <stdlib.h> /* lldiv() */
#include <assert.h>
#include <errno.h>
......
......@@ -32,10 +32,6 @@
*****************************************************************************/
#include <vlc/vlc.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h> /* realloc() */
#endif
#include "../libvlc.h"
#include <vlc_vout.h>
#include <vlc_aout.h>
......
......@@ -26,7 +26,6 @@
#include <vlc/vlc.h>
#include <stdlib.h>
#include "libvlc.h"
#define VLC_THREADS_UNINITIALIZED 0
......
......@@ -37,8 +37,6 @@
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h> /* malloc(), free() */
#include <ctype.h> /* tolower() */
......
......@@ -27,9 +27,6 @@
#include <vlc/vlc.h>
#include "variables.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h> /* realloc() */
#endif
#include "libvlc.h"
/*****************************************************************************
......
......@@ -21,8 +21,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <string.h> /* strdup() */
#include <stdlib.h> /* free() */
#include <vlc/vlc.h>
#include "../libvlc.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 "vlc_xml.h"
......
......@@ -26,9 +26,6 @@
#include "vlc_keys.h"
#include "vlc_charset.h"
#include <stdio.h> /* sprintf() */
#include <stdlib.h> /* free(), strtol() */
#include <string.h> /* strdup() */
#include <errno.h> /* errno */
#ifdef HAVE_LIMITS_H
......
......@@ -29,10 +29,6 @@
#include <vlc/vlc.h>
#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
/*****************************************************************************
* Local prototypes
*****************************************************************************/
......
......@@ -24,11 +24,9 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <vlc/vlc.h>
#include <ctype.h>
#include <vlc_acl.h>
#include <errno.h>
......
......@@ -25,9 +25,6 @@
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef ENABLE_HTTPD
#include <assert.h>
......
......@@ -26,7 +26,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <errno.h>
......
......@@ -26,7 +26,6 @@
* libvlc interface to the Transport Layer Security (TLS) plugins.
*/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc_tls.h>
......
......@@ -27,7 +27,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <vlc/vlc.h>
#include <errno.h>
......
......@@ -24,8 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <vlc/vlc.h>
#include <vlc_keys.h>
......
......@@ -24,8 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <vlc/vlc.h>
#include <vlc_vout.h>
......
......@@ -24,7 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <vlc/vlc.h>
#include <vlc_osd.h>
#include <vlc_vout.h>
......
......@@ -24,15 +24,13 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
#include <assert.h>
#include <vlc/vlc.h>
#include <vlc_sout.h>
#include "stream_output.h"
#include <assert.h>
struct announce_method_t
{
} sap_method;
......
......@@ -30,8 +30,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <vlc/vlc.h>
#if !defined WIN32
......
......@@ -27,9 +27,6 @@
* Preamble
*****************************************************************************/
#include <vlc/vlc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
/* Needed by str_format_time */
......
......@@ -23,9 +23,6 @@
/*** We need your help to complete this file!! Look for FIXME ***/
#include <vlc/vlc.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifndef WIN32
# include <locale.h>
......
......@@ -24,7 +24,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <vlc/vlc.h>
#include <vlc_vout.h>
#include <vlc_osd.h>
......
......@@ -25,9 +25,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
#include <vlc/vlc.h>
#include <vlc_vout.h>
......
......@@ -26,10 +26,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h> /* strerror() */
#include <vlc/vlc.h>
#include <vlc_vout.h>
#include <vlc_block.h>
......
......@@ -94,9 +94,6 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <stdlib.h> /* free() */
#include <string.h> /* memcpy(), memset() */
#include <vlc/vlc.h>
#include <vlc_vout.h>
#include <vlc_input.h>
......
......@@ -28,8 +28,6 @@
#include "config.h"
#include <vlc/vlc.h>
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* putenv(), strtol(), */
#include <locale.h>
/* Explicit HACK */
......
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