summaryrefslogtreecommitdiff
path: root/device.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 /device.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 'device.h')
-rw-r--r--device.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/device.h b/device.h
index 9a4a9085..ce0b0d27 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 4.11 2017/11/02 14:37:02 kls Exp $
+ * $Id: device.h 4.12 2017/11/02 14:47:33 kls Exp $
*/
#ifndef __DEVICE_H
@@ -349,8 +349,10 @@ protected:
public:
static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
///< Returns the number of the current channel on the primary device.
-#define DEPRECATED_SETCURRENTCHANNEL
-#ifdef DEPRECATED_SETCURRENTCHANNEL
+#ifndef DEPRECATED_SETCURRENTCHANNEL
+#define DEPRECATED_SETCURRENTCHANNEL 1
+#endif
+#if DEPRECATED_SETCURRENTCHANNEL
static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
#endif
static void SetCurrentChannel(int ChannelNumber) { currentChannel = ChannelNumber; }