diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-19 12:16:17 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-19 12:16:17 +0000 |
commit | 11afa193a28b02bf0b3faa796b8e1dcc383b21a2 (patch) | |
tree | 5b5a34e13f6f2726120252bca25280752d24277f /tools/bugpoint | |
parent | 67ebebabfb0a1879a297abbcd979dee1065111c6 (diff) | |
download | external_llvm-11afa193a28b02bf0b3faa796b8e1dcc383b21a2.zip external_llvm-11afa193a28b02bf0b3faa796b8e1dcc383b21a2.tar.gz external_llvm-11afa193a28b02bf0b3faa796b8e1dcc383b21a2.tar.bz2 |
Add a hack to unbreak MSVC builds. str(n)casecmp are POSIX functions and aren't available on windows (mingw defines them though).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index dfb65cb..53a3feb 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -604,6 +604,11 @@ 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) { |