File 0019-Fixed-GCC-error-of-undefined-min.patch of Package vdr-plugin-skinenigmang

From 995b108c894970306efcba1d8e70ded50e76f1d3 Mon Sep 17 00:00:00 2001
From: Andreas Mair <amair.sob@googlemail.com>
Date: Tue, 1 May 2018 08:54:51 +0200
Subject: [PATCH 19/19] Fixed GCC error of undefined min().

---
 enigma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/enigma.c b/enigma.c
index 2991cc4..f5cca6c 100644
--- a/enigma.c
+++ b/enigma.c
@@ -1380,7 +1380,7 @@ cSkinEnigmaDisplayMenu::cSkinEnigmaDisplayMenu(void)
   }
 
   lineHeight = pFontList->Height();
-  nMarkerGap = min(MarkerGap, lineHeight / 2 - 1); //lineHeight - 2 * MarkerGap
+  nMarkerGap = std::min(MarkerGap, lineHeight / 2 - 1); //lineHeight - 2 * MarkerGap
   xItemLeft = xBodyLeft + (EnigmaConfig.showMarker ? lineHeight : ListHBorder);
   xItemRight = (fShowLogo || fShowInfo ? xBodyRight : xInfoRight) - ListHBorder - SmallGap - SmallGap - SmallGap;
   int numItems = MaxItems();
@@ -3808,7 +3808,7 @@ cSkinEnigmaDisplayTracks::cSkinEnigmaDisplayTracks(const char *Title, int NumTra
   }
 
   lineHeight = pFontListItem->Height();
-  nMarkerGap = min(MarkerGap, lineHeight / 2 - 1); //lineHeight - 2 * MarkerGap
+  nMarkerGap = std::min(MarkerGap, lineHeight / 2 - 1); //lineHeight - 2 * MarkerGap
   int LogoSize = IconHeight;
   LogoSize += (LogoSize % 2 ? 1 : 0);
   currentIndex = -1;
-- 
2.20.1

openSUSE Build Service is sponsored by