Commit 6d77e9d4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fix config.h usage

Always include it as the first header in all compilation units, never
from headers.
parent 9b4ca124
......@@ -22,6 +22,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "plugin.h"
#include "connectioncontainer.h"
#include "utils.h"
......
......@@ -20,6 +20,10 @@
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "plugin.h"
#include "dataobject.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "utils.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "objectsafety.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "olecontrol.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "oleinplaceactiveobject.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "oleinplaceobject.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "oleobject.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "persistpropbag.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "persiststorage.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "persiststreaminit.h"
......
......@@ -21,7 +21,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "config.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "plugin.h"
......
......@@ -24,10 +24,6 @@
#ifndef __PLUGIN_H__
#define __PLUGIN_H__
#ifdef HAVE_CONFIG
# include "config.h"
#endif
#include <olectl.h>
#include "../common/win32_fullscreen.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "provideclassinfo.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "supporterrorinfo.h"
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "utils.h"
#include <wchar.h>
......
......@@ -20,6 +20,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "plugin.h"
#include "viewobject.h"
......
......@@ -21,7 +21,10 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <shlwapi.h>
......
......@@ -22,10 +22,6 @@
#ifndef POSITION_H
#define POSITION_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
struct posidx_s { const char *n; size_t i; };
static const posidx_s posidx[] = {
{ "center", 0 },
......
......@@ -19,6 +19,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlc_player.h"
bool vlc_player::open(VLC::Instance& inst)
......
......@@ -20,6 +20,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
......
......@@ -19,6 +19,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "win32_vlcwnd.h"
LRESULT CALLBACK VLCWnd::_WindowProc(HWND hWnd, UINT uMsg,
......
......@@ -29,10 +29,6 @@
#ifndef __VLCPLUGIN_COMMON_H__
#define __VLCPLUGIN_COMMON_H__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
// Setup XP_MACOSX, XP_UNIX, XP_WIN
#if defined(_WIN32)
# define XP_WIN 1
......
......@@ -23,6 +23,10 @@
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -24,6 +24,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcplugin.h"
#include <stdio.h>
......
......@@ -29,10 +29,6 @@
#ifndef __VLCPLUGIN_H__
#define __VLCPLUGIN_H__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "common.h"
#if defined(XP_UNIX) && !defined(XP_MACOSX)
......
......@@ -31,6 +31,7 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
......
......@@ -21,6 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcplugin_gtk.h"
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
......
......@@ -22,6 +22,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcplugin_win.h"
#include "../common/win32_fullscreen.h"
......
......@@ -22,6 +22,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcplugin_xcb.h"
#include <cstring>
......
......@@ -25,11 +25,6 @@
#ifndef __VLCSHELL_H__
#define __VLCSHELL_H__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
NPP_GET_MIME_CONST char * NPP_GetMIMEDescription( void );
NPError NPP_Initialize( void );
......
......@@ -23,6 +23,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcwindowless_base.h"
VlcWindowlessBase::VlcWindowlessBase(NPP instance, NPuint16_t mode) :
......
......@@ -21,6 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <npapi.h>
#include "vlcwindowless_mac.h"
......
......@@ -21,6 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcwindowless_win.h"
#include <cstdio>
......
......@@ -21,6 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "vlcwindowless_xcb.h"
#include <X11/Xlib-xcb.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