diff options
-rw-r--r-- | eepg.c | 2 | ||||
-rw-r--r-- | epghandler.c | 3 | ||||
-rw-r--r-- | epghandler.h | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -4497,7 +4497,9 @@ bool cPluginEEPG::Start (void) for (int i = 0; i < NumberOfAvailableSources; i++) isyslog ("EEPG: Available sources:%s.", *cSource::ToString (AvailableSources[i])); +#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 <vdr/epg.h> #include <string> @@ -35,4 +36,5 @@ private: std::string origDescription; }; +#endif /*APIVERSNUM > 10725*/ #endif /* CEEPGHANDLER_H_ */ |