summaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/compat.h b/compat.h
new file mode 100644
index 0000000..4041ed4
--- /dev/null
+++ b/compat.h
@@ -0,0 +1,18 @@
+#ifndef _GRAPHLCD_COMPAT_H_
+#define _GRAPHLCD_COMPAT_H_
+
+
+#if VDRVERSNUM < 10318
+#define TimeMs time_ms
+#else
+#define TimeMs cTimeMs::Now
+#endif
+
+#if VDRVERSNUM >= 10318
+#define Apid1() Apid(0)
+#define Apid2() Apid(1)
+#define Dpid1() Dpid(0)
+#define Dpid2() Dpid(1)
+#endif
+
+#endif