From 3d7cce05aadefcfc8b205603c07a93df1de31337 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Sat, 12 Jul 2025 08:18:07 +0200 Subject: [PATCH] Fix Linux build --- src/core/fex/unrar/strfn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/fex/unrar/strfn.cpp b/src/core/fex/unrar/strfn.cpp index f4db6a87..ce448c0a 100644 --- a/src/core/fex/unrar/strfn.cpp +++ b/src/core/fex/unrar/strfn.cpp @@ -129,7 +129,7 @@ wchar etoupperw(wchar ch) { if (ch=='i') return('I'); -#if defined(__APPLE__) || defined(_MSC_VER) || defined(__MINGW32__) +#if defined(__APPLE__) || defined(_MSC_VER) || defined(__MINGW32__) || defined(__linux__) return(toupper(ch)); #else return(toupperw(ch)); @@ -234,7 +234,7 @@ bool LowAscii(const wchar *Str) int wcsicompc(const wchar *Str1,const wchar *Str2) { -#if defined(_UNIX) || defined(_MSC_VER) || defined(__APPLE__) +#if defined(_UNIX) || defined(_MSC_VER) || defined(__APPLE__) || defined(__linux__) return my_wcscmp(Str1,Str2); #elif defined(__MINGW32__) return _wcsicmp(Str1,Str2);