2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 13:07:43 +00:00

MSVC fixes

This commit is contained in:
Jack Andersen
2015-07-22 09:05:18 -10:00
parent a4d6e32e48
commit ec0c7de511
19 changed files with 118 additions and 46 deletions

View File

@@ -133,13 +133,22 @@ struct CaseInsensitiveCompare
inline bool operator()(const std::string& lhs, const std::string& rhs) const
{
#if _WIN32
if (stricmp(lhs.c_str(), rhs.c_str()) < 0)
if (_stricmp(lhs.c_str(), rhs.c_str()) < 0)
#else
if (strcasecmp(lhs.c_str(), rhs.c_str()) < 0)
#endif
return true;
return false;
}
#if _WIN32
inline bool operator()(const std::wstring& lhs, const std::wstring& rhs) const
{
if (_wcsicmp(lhs.c_str(), rhs.c_str()) < 0)
return true;
return false;
}
#endif
};
/* PAK entry stream reader */