From c5d1862e4e8ec2957acceb4738523999c74f4372 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Fri, 11 Jul 2025 06:33:10 +0000 Subject: [PATCH] build: fix x86-mingw build Amend the cpp macro checks in the unrar code to fix the build for MinGW. Signed-off-by: Rafael Kitover --- 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 a61a56c8..1c95d154 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) +#if defined(__APPLE__) || defined(_MSC_VER) || defined(__MINGW32__) 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(__MINGW32__) return my_wcscmp(Str1,Str2); #else return wcsicomp(Str1,Str2);