summaryrefslogtreecommitdiff
path: root/skins.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-11-02 15:04:56 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-11-02 15:04:56 +0100
commitd8523b0db8adf0559040834487e5371c525132cb (patch)
treee6a8eab249d3de3487aca01df7eae14534a503aa /skins.h
parentd74dd7a60a3ea3ca563fd307885d6d4b571d9a2f (diff)
downloadvdr-d8523b0db8adf0559040834487e5371c525132cb.tar.gz
vdr-d8523b0db8adf0559040834487e5371c525132cb.tar.bz2
The macros used to control deprecated code or functions have been changed to hold numeric values; the default for DEPRECATED_VDR_CHARSET_OVERRIDE has been set to 0
Diffstat (limited to 'skins.h')
-rw-r--r--skins.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/skins.h b/skins.h
index 81d68ffe..bd8e15d1 100644
--- a/skins.h
+++ b/skins.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.h 4.4 2017/06/25 10:02:09 kls Exp $
+ * $Id: skins.h 4.5 2017/11/02 15:04:56 kls Exp $
*/
#ifndef __SKINS_H
@@ -244,8 +244,10 @@ public:
///< If the skin displays the Event item in its own way, it shall return true.
///< The default implementation does nothing and returns false, which results in
///< a call to SetItem() with a proper text.
-#define DEPRECATED_SKIN_SETITEMEVENT
-#ifdef DEPRECATED_SKIN_SETITEMEVENT
+#ifndef DEPRECATED_SKIN_SETITEMEVENT
+#define DEPRECATED_SKIN_SETITEMEVENT 1
+#endif
+#if DEPRECATED_SKIN_SETITEMEVENT
virtual bool SetItemEvent(const cEvent *Event, int Index, bool Current, bool Selectable, const cChannel *Channel, bool WithDate, eTimerMatch TimerMatch) { return SetItemEvent(Event, Index, Current, Selectable, Channel, WithDate, TimerMatch, true); }
///< This function is here for comaptibility with older plugins and may be removed
///< in a future version. Use the above version of SetItemEvent() with the TimerActive