[llvm-commits] [llvm] r79417 - /llvm/trunk/tools/bugpoint/ToolRunner.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed Aug 19 05:16:17 PDT 2009


Author: d0k
Date: Wed Aug 19 07:16:17 2009
New Revision: 79417

URL: http://llvm.org/viewvc/llvm-project?rev=79417&view=rev
Log:
Add a hack to unbreak MSVC builds. str(n)casecmp are POSIX functions and aren't available on windows (mingw defines them though).

Modified:
    llvm/trunk/tools/bugpoint/ToolRunner.cpp

Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=79417&r1=79416&r2=79417&view=diff

==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Wed Aug 19 07:16:17 2009
@@ -604,6 +604,11 @@
 // 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)
 {





More information about the llvm-commits mailing list