Unbreak MSVC build.
authorFrancois Pichet <pichet2000@gmail.com>
Tue, 4 Oct 2011 16:28:07 +0000 (16:28 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Tue, 4 Oct 2011 16:28:07 +0000 (16:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGPreprocessor.cpp

index ac89e880086bde94bc36fddf4c63b2066fc05ad6..6c82ee38302c3bd4f78c753dd00c359e63936db0 100644 (file)
 #include <cstdlib>
 #include <cstring>
 
 #include <cstdlib>
 #include <cstring>
 
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
 namespace llvm {
 typedef std::map<std::string, std::string> TGPPEnvironment;
 
 namespace llvm {
 typedef std::map<std::string, std::string> TGPPEnvironment;