From 2573ca151b19ecc642987e092dad1210ac0b748d Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Tue, 23 Mar 2021 21:21:36 -0700 Subject: [PATCH] CaseInsensitiveLess::NocaseCompare::operator mingw fix attempt --- ixwebsocket/IXStrCaseCompare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXStrCaseCompare.cpp b/ixwebsocket/IXStrCaseCompare.cpp index d2fceb60..833815ff 100644 --- a/ixwebsocket/IXStrCaseCompare.cpp +++ b/ixwebsocket/IXStrCaseCompare.cpp @@ -14,7 +14,7 @@ namespace ix bool CaseInsensitiveLess::NocaseCompare::operator()(const unsigned char& c1, const unsigned char& c2) const { -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__GNUC__) return std::tolower(c1, std::locale()) < std::tolower(c2, std::locale()); #else return std::tolower(c1) < std::tolower(c2);