From a6c53f5ecea66d7053c0b25c11e0ee53cf11be1c Mon Sep 17 00:00:00 2001 From: rjkm Date: Fri, 11 Feb 2022 16:08:50 +0100 Subject: [PATCH] add backwards compatibility include --- include/dd_compat.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dd_compat.h diff --git a/include/dd_compat.h b/include/dd_compat.h new file mode 100644 index 0000000..50bcced --- /dev/null +++ b/include/dd_compat.h @@ -0,0 +1,31 @@ +#ifndef __has_attribute +#define __has_attribute(x) 0 +#endif + +#ifndef fallthrough +#if __has_attribute(__fallthrough__) +# define fallthrough __attribute__((__fallthrough__)) +#else +# define fallthrough do {} while (0) /* fallthrough */ +#endif +#endif + + +#ifdef KERNEL_DVB_CORE +#define DVB_DEVICE_CI 0 +#define DVB_DEVICE_MOD 6 +#define DVB_DEVICE_NS 7 +#define DVB_DEVICE_NSD 8 + +#define SYS_DVBC2 19 +#define ROLLOFF_15 4 +#define ROLLOFF_10 5 +#define ROLLOFF_5 6 + +#define FEC_1_4 13 +#define FEC_1_3 14 + +#define APSK_64 14 +#define APSK_128 15 +#define APSK_256 16 +#endif