summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDime <dime@dime-dell-system-xps-l702x.ein-sof.net.mk>2012-05-16 13:24:24 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2012-05-18 09:22:26 +0200
commitaa7d6a705d56f11c327ebe4c09a8a0a0f517e8fd (patch)
treead7368654327c3ae9fbc96a601956042ea56c8bf
parent23260abbe50c8315663b4f63fdaed38c26372a29 (diff)
downloadvdr-plugin-eepg-aa7d6a705d56f11c327ebe4c09a8a0a0f517e8fd.tar.gz
vdr-plugin-eepg-aa7d6a705d56f11c327ebe4c09a8a0a0f517e8fd.tar.bz2
add defines to compile wit VDR < 1.7.26
-rw-r--r--eepg.c4
-rw-r--r--epghandler.c3
-rw-r--r--epghandler.h2
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 <vdr/epg.h>
#include <string>
@@ -35,4 +36,5 @@ private:
std::string origDescription;
};
+#endif /*APIVERSNUM > 10725*/
#endif /* CEEPGHANDLER_H_ */