From 5b61c364841dc4234254f478b56f64ff02a18fe2 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 7 Jun 2021 11:37:40 +0200 Subject: Fix compiler error --- coreengine/listelements.c | 6 ++++-- coreengine/viewdetail.c | 3 ++- coreengine/viewelementsdisplaymenu.c | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'coreengine') 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); -- cgit v1.2.3