CaseInsensitiveLess::NocaseCompare::operator mingw fix attempt
This commit is contained in:
parent
c5b5fa82be
commit
2573ca151b
@ -14,7 +14,7 @@ namespace ix
|
|||||||
bool CaseInsensitiveLess::NocaseCompare::operator()(const unsigned char& c1,
|
bool CaseInsensitiveLess::NocaseCompare::operator()(const unsigned char& c1,
|
||||||
const unsigned char& c2) const
|
const unsigned char& c2) const
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(__GNUC__)
|
||||||
return std::tolower(c1, std::locale()) < std::tolower(c2, std::locale());
|
return std::tolower(c1, std::locale()) < std::tolower(c2, std::locale());
|
||||||
#else
|
#else
|
||||||
return std::tolower(c1) < std::tolower(c2);
|
return std::tolower(c1) < std::tolower(c2);
|
||||||
|
Loading…
Reference in New Issue
Block a user