From aa7d6a705d56f11c327ebe4c09a8a0a0f517e8fd Mon Sep 17 00:00:00 2001 From: Dime Date: Wed, 16 May 2012 13:24:24 +0200 Subject: add defines to compile wit VDR < 1.7.26 --- eepg.c | 4 +++- epghandler.c | 3 ++- epghandler.h | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/eepg.c b/eepg.c index 5624478..4bfd5d7 100644 --- a/eepg.c +++ b/eepg.c @@ -4497,9 +4497,11 @@ bool cPluginEEPG::Start (void) for (int i = 0; i < NumberOfAvailableSources; i++) isyslog ("EEPG: Available sources:%s.", *cSource::ToString (AvailableSources[i])); - closedir(ConfigDir); +#if APIVERSNUM > 10725 new cEEpgHandler(); +#endif + closedir(ConfigDir); return true; } diff --git a/epghandler.c b/epghandler.c index 2c25268..36aaf74 100644 --- a/epghandler.c +++ b/epghandler.c @@ -5,6 +5,7 @@ * Author: d.petrovski */ +#if APIVERSNUM > 10725 #include "epghandler.h" #include "log.h" @@ -122,4 +123,4 @@ bool cEEpgHandler::DropOutdated(cSchedule* Schedule, time_t SegmentStart, return false; } - +#endif diff --git a/epghandler.h b/epghandler.h index 3256153..8d3615a 100644 --- a/epghandler.h +++ b/epghandler.h @@ -7,6 +7,7 @@ #ifndef CEEPGHANDLER_H_ #define CEEPGHANDLER_H_ +#if APIVERSNUM > 10725 #include #include @@ -35,4 +36,5 @@ private: std::string origDescription; }; +#endif /*APIVERSNUM > 10725*/ #endif /* CEEPGHANDLER_H_ */ -- cgit v1.2.3