diff --git a/autoptr.h b/autoptr.h index 3349367a..4dc02634 100644 --- a/autoptr.h +++ b/autoptr.h @@ -5,6 +5,8 @@ + __GNUC_MINOR__ * 100 \ + __GNUC_PATCHLEVEL__) +# include + #if GCC_VERSION > 50000 # define AUTO_PTR std::unique_ptr #else diff --git a/cache.h b/cache.h index 88fbd602..b69bd622 100644 --- a/cache.h +++ b/cache.h @@ -1,14 +1,11 @@ #ifndef VGSTOOLS_CACHE_H #define VGSTOOLS_CACHE_H +#include "stdext.h" + #include -#include -#include -#include #include #include -#include -#include "stdext.h" /* Interface for TValue: * size_t weight() diff --git a/epg_events.cpp b/epg_events.cpp index fabf0338..e4bfde7d 100644 --- a/epg_events.cpp +++ b/epg_events.cpp @@ -1,15 +1,16 @@ -#include -#include -#include -#include -#include + +#include "epg_events.h" #include "tools.h" #include "recman.h" - -#include "epg_events.h" #include "setup.h" +// STL headers need to be before VDR tools.h (included by ) +#include +#include + +#include + using namespace std; namespace vdrlive diff --git a/epg_events.h b/epg_events.h index 0729ad2a..ebd583b5 100644 --- a/epg_events.h +++ b/epg_events.h @@ -1,17 +1,15 @@ -#ifndef VDR_LIVE_WHATS_ON_H -#define VDR_LIVE_WHATS_ON_H +#ifndef VDR_LIVE_EPG_EVENTS_H +#define VDR_LIVE_EPG_EVENTS_H -#include +#include "stdext.h" + +// STL headers need to be before VDR tools.h (included by ) +#include #include -#include #include #include -#include -#include - -#include "live.h" -#include "stdext.h" +#include namespace vdrlive { @@ -252,5 +250,4 @@ namespace vdrlive }; // namespace vdrlive -#endif // VDR_LIVE_WHATS_ON_H - +#endif // VDR_LIVE_EPG_EVENTS_H diff --git a/epgsearch.cpp b/epgsearch.cpp index b157ea0e..48e7fbf8 100644 --- a/epgsearch.cpp +++ b/epgsearch.cpp @@ -1,14 +1,13 @@ -#include -#include -#include -#include -#include -#include "epgsearch/services.h" + #include "epgsearch.h" + +#include "epgsearch/services.h" #include "exception.h" #include "livefeatures.h" #include "tools.h" +#include + namespace vdrlive { using namespace std; diff --git a/epgsearch.h b/epgsearch.h index 95d7387b..c5f81e67 100644 --- a/epgsearch.h +++ b/epgsearch.h @@ -1,13 +1,15 @@ #ifndef VDR_LIVE_EPGSEARCH_H #define VDR_LIVE_EPGSEARCH_H +// STL headers need to be before VDR tools.h (included by ) #include #include #include #include +#include + #include #include -#include "tools.h" namespace vdrlive { diff --git a/epgsearch/services.h b/epgsearch/services.h index e7f80dda..fee274ea 100644 --- a/epgsearch/services.h +++ b/epgsearch/services.h @@ -24,12 +24,15 @@ The project's page is at http://winni.vdr-developer.org/epgsearch #ifndef EPGSEARCHSERVICES_INC #define EPGSEARCHSERVICES_INC +#include "../autoptr.h" + +// STL headers need to be before VDR tools.h (included by ) #include #include -#include #include + #include -#include "../autoptr.h" + // Data structure for service "Epgsearch-search-v1.0" struct Epgsearch_search_v1_0 diff --git a/filecache.cpp b/filecache.cpp index 1ecb60f2..a9c7c112 100644 --- a/filecache.cpp +++ b/filecache.cpp @@ -1,8 +1,10 @@ + +#include "filecache.h" + #include #include #include #include -#include "filecache.h" namespace vdrlive { diff --git a/filecache.h b/filecache.h index 6833193f..25679c01 100644 --- a/filecache.h +++ b/filecache.h @@ -1,13 +1,15 @@ #ifndef VDR_LIVE_FILECACHE_H #define VDR_LIVE_FILECACHE_H +#include "cache.h" + +// STL headers need to be before VDR tools.h (included by ) #include -#include #include +#include #include + #include -#include -#include "cache.h" namespace vdrlive { diff --git a/grab.cpp b/grab.cpp index a86f3e99..cf8cf2ce 100644 --- a/grab.cpp +++ b/grab.cpp @@ -1,8 +1,10 @@ -#include -#include -#include + #include "grab.h" +#include "tasks.h" + +#include + namespace vdrlive { using namespace std; diff --git a/grab.h b/grab.h index f1c3aed5..3895e9db 100644 --- a/grab.h +++ b/grab.h @@ -2,7 +2,6 @@ #define VDR_LIVE_GRAB_H #include "stdext.h" -#include "tasks.h" #include "autoptr.h" namespace vdrlive { diff --git a/i18n.cpp b/i18n.cpp index 5c01b0c1..0e74a9b5 100644 --- a/i18n.cpp +++ b/i18n.cpp @@ -7,6 +7,8 @@ #include "i18n.h" +#include + namespace vdrlive { diff --git a/i18n.h b/i18n.h index e584d175..7e8cba97 100644 --- a/i18n.h +++ b/i18n.h @@ -2,8 +2,6 @@ #define VDR_LIVE_I18N_H #include -#include -#include namespace vdrlive { diff --git a/live.cpp b/live.cpp index 232965a5..d948f7d8 100644 --- a/live.cpp +++ b/live.cpp @@ -4,17 +4,11 @@ * See the README file for copyright information and how to reach the author. */ -// To get rid of the swap definition in vdr/tools.h -#define __STL_CONFIG_H - -#include -#include -#include "i18n.h" #include "live.h" + #include "setup.h" #include "status.h" #include "tasks.h" -#include "thread.h" #include "timers.h" #include "preload.h" #include "users.h" diff --git a/live.h b/live.h index 93e441dd..bf874be3 100644 --- a/live.h +++ b/live.h @@ -1,12 +1,16 @@ #ifndef VDR_LIVE_LIVE_H #define VDR_LIVE_LIVE_H -#include +#include "thread.h" + +// STL headers need to be before VDR tools.h (included by ) #include -#include + +#ifndef __STL_CONFIG_H +// To get rid of the swap definition in vdr/tools.h +# define __STL_CONFIG_H +#endif #include -#include "thread.h" -#include "autoptr.h" namespace vdrlive { diff --git a/livefeatures.cpp b/livefeatures.cpp index 94aa4cce..edc4e925 100644 --- a/livefeatures.cpp +++ b/livefeatures.cpp @@ -1,4 +1,6 @@ + #include "livefeatures.h" + #include "tools.h" namespace vdrlive { diff --git a/livefeatures.h b/livefeatures.h index 8c6f3619..98f2d8ac 100644 --- a/livefeatures.h +++ b/livefeatures.h @@ -1,13 +1,13 @@ #ifndef VDR_LIVE_FEATURES_H #define VDR_LIVE_FEATURES_H +// STL headers need to be before VDR tools.h (included by ) #include + #include namespace vdrlive { -//LiveFeatures().Available(); - class SplitVersion { public: diff --git a/md5.cpp b/md5.cpp index 7befb446..9bdbefae 100644 --- a/md5.cpp +++ b/md5.cpp @@ -33,12 +33,11 @@ // documentation and/or software. ///////////////////////////////////////////////////////////////////////// +#include "md5.h" + #include #include #include -#include -#include "md5.h" - static unsigned char PADDING[64] = { diff --git a/osd_status.cpp b/osd_status.cpp index a6791ab4..90e6257d 100644 --- a/osd_status.cpp +++ b/osd_status.cpp @@ -1,7 +1,8 @@ -#include -#include + #include "osd_status.h" +#include + namespace vdrlive { OsdStatusMonitor::OsdStatusMonitor():title(),message(),red(),green(),yellow(),blue(),text(),selected(-1),lastUpdate(0){ diff --git a/osd_status.h b/osd_status.h index f84b1ef2..3c86d453 100644 --- a/osd_status.h +++ b/osd_status.h @@ -1,9 +1,11 @@ #ifndef VDR_LIVE_OSD_STATUS_H #define VDR_LIVE_OSD_STATUS_H +// STL headers need to be before VDR tools.h (included by ) #include + #include -#include + namespace vdrlive { diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp index d4c06b46..c71506d1 100644 --- a/pages/channels_widget.ecpp +++ b/pages/channels_widget.ecpp @@ -1,8 +1,7 @@ <%pre> -#include -#include "exception.h" -#include "setup.h" -#include "tools.h" + +#include +#include using namespace vdrlive; diff --git a/pages/content.ecpp b/pages/content.ecpp index cde092f9..28f43c16 100644 --- a/pages/content.ecpp +++ b/pages/content.ecpp @@ -1,9 +1,6 @@ <%pre> -#include -#include -#include -#include "filecache.h" -#include "setup.h" + +#include using namespace std; using namespace vdrlive; diff --git a/pages/edit_recording.ecpp b/pages/edit_recording.ecpp index a810908c..e3e3deb9 100644 --- a/pages/edit_recording.ecpp +++ b/pages/edit_recording.ecpp @@ -1,15 +1,11 @@ <%pre> + +#include +#include +#include +#include + #include -#include -#include -#include "exception.h" -#include "tools.h" -#include "epg_events.h" -#include "recman.h" -#include "setup.h" -#include "i18n.h" -#include "livefeatures.h" -#include "users.h" using namespace std; using namespace vdrlive; diff --git a/pages/edit_searchtimer.ecpp b/pages/edit_searchtimer.ecpp index a17b9d8b..a81a15a0 100644 --- a/pages/edit_searchtimer.ecpp +++ b/pages/edit_searchtimer.ecpp @@ -1,16 +1,11 @@ <%pre> -#include -#include -#include -#include -#include + +#include +#include +#include +#include + #include -#include "exception.h" -#include "tools.h" -#include "epgsearch.h" -#include "setup.h" -#include "i18n.h" -#include "users.h" using namespace std; using namespace vdrlive; diff --git a/pages/edit_timer.ecpp b/pages/edit_timer.ecpp index ecc8c6ef..d080ee55 100644 --- a/pages/edit_timer.ecpp +++ b/pages/edit_timer.ecpp @@ -1,24 +1,16 @@ <%pre> -// To get rid of the swap definition in vdr/tools.h -#define __STL_CONFIG_H +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include -#include -#include -#include -#include -#include "exception.h" -#include "tools.h" -#include "timers.h" -#include "setup.h" -#include "epg_events.h" -#include "timerconflict.h" -#include "i18n.h" -#include "livefeatures.h" -#include "epgsearch.h" -#include "users.h" -#include "autoptr.h" +#include using namespace std; using namespace vdrlive; @@ -226,15 +218,15 @@ cTimer* timer; <%cpp> if ( LiveFeatures< features::epgsearch >().Recent() ) { - RecordingDirs recordingdirs(true); + RecordingDirs recordingdirs(true);
<$ tr("Directory" ) $>: