mirror of
https://github.com/n64decomp/sm64
synced 2026-04-30 19:13:46 +00:00
Merge 48ee471e28 into 9921382a68
This commit is contained in:
commit
9ab3ab8d24
|
|
@ -32,7 +32,6 @@ SOFTWARE.
|
|||
|
||||
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#undef __STRICT_ANSI__
|
||||
|
||||
#if defined(__clang__)
|
||||
#if __has_feature(cxx_exceptions)
|
||||
|
|
@ -15903,16 +15902,19 @@ int runFromCommandLine(const StringList& arguments, ArmipsArguments settings)
|
|||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <strings.h>
|
||||
#define _stricmp strcasecmp
|
||||
#endif
|
||||
#include <cctype>
|
||||
|
||||
static bool stringEqualInsensitive(const std::string& a, const std::string& b)
|
||||
{
|
||||
if (a.size() != b.size())
|
||||
return false;
|
||||
return _stricmp(a.c_str(),b.c_str()) == 0;
|
||||
|
||||
auto compare = [](char c1, char c2)
|
||||
{
|
||||
return std::tolower(c1) == std::tolower(c2);
|
||||
};
|
||||
|
||||
return std::equal(a.begin(), a.end(), b.begin(), compare);
|
||||
}
|
||||
|
||||
bool compareSection(ElfSection* a, ElfSection* b)
|
||||
|
|
|
|||
Loading…
Reference in a new issue