summaryrefslogtreecommitdiff
path: root/zaplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaplist.c')
-rw-r--r--zaplist.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/zaplist.c b/zaplist.c
index 0d3ebec..afb3ce0 100644
--- a/zaplist.c
+++ b/zaplist.c
@@ -13,7 +13,11 @@
cZapHistory ZapHistory;
+#if APIVERSNUM >= 20301
+cZapHistoryChannel* cZapHistory::FindChannel(const cChannel *channel) {
+#else
cZapHistoryChannel* cZapHistory::FindChannel(cChannel *channel) {
+#endif
if (channel == NULL)
return NULL;
@@ -100,8 +104,11 @@ void cZapHistory::UpdateWatchTime() {
void cZapHistory::ViewContinue() {
lastSwitch = time(NULL);
}
-
+#if APIVERSNUM >= 20301
+void cZapHistory::ChannelSwitch( const cChannel *channel ) {
+#else
void cZapHistory::ChannelSwitch( cChannel *channel ) {
+#endif
cZapHistoryChannel *zapChan = FindChannel( channel );
// Channel not in history management