Fix compiler error

This commit is contained in:
kamel5 2021-06-07 11:37:40 +02:00
parent 7d269ffd85
commit 5b61c36484
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);