mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
Proper MSVC build fix (and remove my hack again). Patch by Yonggang Luo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e057e59061
commit
ad0f120f59
@ -604,19 +604,14 @@ CBE *AbstractInterpreter::createCBE(const char *Argv0,
|
||||
// GCC abstraction
|
||||
//
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp(s1, s2) _stricmp(s1, s2)
|
||||
#define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
|
||||
#endif
|
||||
|
||||
static bool
|
||||
IsARMArchitecture(std::vector<std::string> Args)
|
||||
{
|
||||
for (std::vector<std::string>::const_iterator
|
||||
I = Args.begin(), E = Args.end(); I != E; ++I) {
|
||||
if (!strcasecmp(I->c_str(), "-arch")) {
|
||||
if (!StringsEqualNoCase(*I, "-arch")) {
|
||||
++I;
|
||||
if ((I != E) && !strncasecmp(I->c_str(), "arm", strlen("arm"))) {
|
||||
if ((I != E) && !StringsEqualNoCase(I->c_str(), "arm", strlen("arm"))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user