diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-06-07 11:37:40 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-06-07 11:37:40 +0200 |
commit | 5b61c364841dc4234254f478b56f64ff02a18fe2 (patch) | |
tree | c70aa6c6442f6f0cceca4037737289c947f7365f | |
parent | 7d269ffd8569fabb5dcecc6513dfbbeca990e6f2 (diff) | |
download | vdr-plugin-skindesigner-5b61c364841dc4234254f478b56f64ff02a18fe2.tar.gz vdr-plugin-skindesigner-5b61c364841dc4234254f478b56f64ff02a18fe2.tar.bz2 |
Fix compiler error
-rw-r--r-- | coreengine/listelements.c | 6 | ||||
-rw-r--r-- | coreengine/viewdetail.c | 3 | ||||
-rw-r--r-- | coreengine/viewelementsdisplaymenu.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/coreengine/listelements.c b/coreengine/listelements.c index 10d4837..c38d65f 100644 --- a/coreengine/listelements.c +++ b/coreengine/listelements.c @@ -2058,7 +2058,8 @@ bool cLeMenuRecordings::Parse(bool forced) { } int errors = -1; -#if defined (APIVERSNUM) && (APIVERSNUM >= 20504) +// ENABLE_ERRORS is only used in VDR-2.5.4 if the coresponding patch is installed, so it can be ignored in other versions +#if (defined (APIVERSNUM) && (APIVERSNUM >= 20505)) || defined (ENABLE_ERRORS) errors = info->Errors(); #endif @@ -2278,7 +2279,8 @@ bool cCeMenuRecordings::Parse(bool forced) { } int errors = -1; -#if defined (APIVERSNUM) && (APIVERSNUM >= 20504) +// ENABLE_ERRORS is only used in VDR-2.5.4 if the coresponding patch is installed, so it can be ignored in other versions +#if (defined (APIVERSNUM) && (APIVERSNUM >= 20505)) || defined (ENABLE_ERRORS) errors = info->Errors(); #endif diff --git a/coreengine/viewdetail.c b/coreengine/viewdetail.c index 56910d3..9b741eb 100644 --- a/coreengine/viewdetail.c +++ b/coreengine/viewdetail.c @@ -675,7 +675,8 @@ bool cViewDetailRec::Parse(bool forced) { tokenContainer->AddStringToken((int)eDmDetailedRecST::description, info->Description());
tokenContainer->AddIntToken((int)eDmDetailedRecIT::framesPerSecond, info->FramesPerSecond());
int errors = -1;
-#if defined (APIVERSNUM) && (APIVERSNUM >= 20504)
+// ENABLE_ERRORS is only used in VDR-2.5.4 if the coresponding patch is installed, so it can be ignored in other versions
+#if (defined (APIVERSNUM) && (APIVERSNUM >= 20505)) || defined (ENABLE_ERRORS)
errors = info->Errors();
#endif
tokenContainer->AddIntToken((int)eDmDetailedRecIT::errors, errors);
diff --git a/coreengine/viewelementsdisplaymenu.c b/coreengine/viewelementsdisplaymenu.c index 24240a7..710cec6 100644 --- a/coreengine/viewelementsdisplaymenu.c +++ b/coreengine/viewelementsdisplaymenu.c @@ -1230,7 +1230,8 @@ bool cVeDmDetailheaderRec::Parse(bool forced) { tokenContainer->AddStringToken((int)eDmDetailedHeaderRecST::shorttext, info->ShortText()); tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::framesPerSecond, info->FramesPerSecond()); int errors = -1; -#if defined (APIVERSNUM) && (APIVERSNUM >= 20504) +// ENABLE_ERRORS is only used in VDR-2.5.4 if the coresponding patch is installed, so it can be ignored in other versions +#if (defined (APIVERSNUM) && (APIVERSNUM >= 20505)) || defined (ENABLE_ERRORS) errors = info->Errors(); #endif tokenContainer->AddIntToken((int)eDmDetailedHeaderRecIT::errors, errors); |