summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-10-04 16:28:07 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-10-04 16:28:07 +0000
commit1f121e844fad436b6fcf8981cc9297f7aad43125 (patch)
tree8100d8289204cc7a4afdb2dbb95d92855f54f699
parent8a567f1fb9cfbbbc3dbedb10e2b5fc77a1e5ba50 (diff)
downloadllvm-1f121e844fad436b6fcf8981cc9297f7aad43125.tar.gz
llvm-1f121e844fad436b6fcf8981cc9297f7aad43125.tar.bz2
llvm-1f121e844fad436b6fcf8981cc9297f7aad43125.tar.xz
Unbreak MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/TableGen/TGPreprocessor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/TableGen/TGPreprocessor.cpp b/lib/TableGen/TGPreprocessor.cpp
index ac89e88008..6c82ee3830 100644
--- a/lib/TableGen/TGPreprocessor.cpp
+++ b/lib/TableGen/TGPreprocessor.cpp
@@ -24,6 +24,10 @@
#include <cstdlib>
#include <cstring>
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
namespace llvm {
typedef std::map<std::string, std::string> TGPPEnvironment;