From 4ca91724d7700edb009a3037c7020aa033ce14d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 29 Jun 2020 19:14:27 +0200 Subject: Drop the use of the HAVE_XINE_H definition. Add include to the appropriate headers. Clean up the arrangement of include files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/part/videoWindow.cpp | 8 +++++--- src/part/videoWindow.h | 4 ++-- src/part/xineEngine.cpp | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'src/part') diff --git a/src/part/videoWindow.cpp b/src/part/videoWindow.cpp index 79d09ae..eb1c859 100644 --- a/src/part/videoWindow.cpp +++ b/src/part/videoWindow.cpp @@ -3,14 +3,16 @@ #define CODEINE_DEBUG_PREFIX "videoWindow" + #include -#include "../debug.h" #include //sendEvent() +#include #include #include -#include "videoWindow.h" #include //TODO this breaks compile for lots of people due to excessive macro content -#include //x11_visual_t + +#include "../debug.h" +#include "videoWindow.h" namespace Codeine { diff --git a/src/part/videoWindow.h b/src/part/videoWindow.h index 76d2b6c..f7e5782 100644 --- a/src/part/videoWindow.h +++ b/src/part/videoWindow.h @@ -8,6 +8,8 @@ #include #include #include +#include + typedef struct xine_s xine_t; typedef struct xine_stream_s xine_stream_t; @@ -46,9 +48,7 @@ namespace Codeine private: /// @see xineEngine.cpp - #ifdef HAVE_XINE_H static void xineEventListener( void*, const xine_event_t* ); - #endif void showErrorMessage(); //TODO don't use this, just show delayed message diff --git a/src/part/xineEngine.cpp b/src/part/xineEngine.cpp index ac04c4a..96108a7 100644 --- a/src/part/xineEngine.cpp +++ b/src/part/xineEngine.cpp @@ -3,14 +3,14 @@ #define CODEINE_DEBUG_PREFIX "engine" -#include "../debug.h" #include #include -#include "../mxcl.library.h" #include //::sendEvent() #include //::play() #include //TQDir::homeDir() -#include + +#include "../debug.h" +#include "../mxcl.library.h" #include "videoWindow.h" -- cgit v1.2.1