2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-04 12:35:52 +00:00

Merge pull request #22 from lioncash/ifdef

hecl/hecl: Remove windows ifdef in CaseInsensitiveCompare
This commit is contained in:
Phillip Stephens 2019-08-25 18:25:53 -07:00 committed by GitHub
commit b235a8fefe

View File

@ -503,13 +503,11 @@ struct CaseInsensitiveCompare {
}); });
} }
#if _WIN32
bool operator()(std::wstring_view lhs, std::wstring_view rhs) const { bool operator()(std::wstring_view lhs, std::wstring_view rhs) const {
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [](wchar_t lhs, wchar_t rhs) { return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [](wchar_t lhs, wchar_t rhs) {
return std::towlower(lhs) < std::towlower(rhs); return std::towlower(lhs) < std::towlower(rhs);
}); });
} }
#endif
}; };
/** /**