summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGPreprocessor.cpp
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
commitb26b49ca63d2198e58774af60b1465e0725657d6 (patch)
treef0bdedba65376dd42857ec2a63e6391413742ea6 /llvm/lib/TableGen/TGPreprocessor.cpp
parent41090ed753b4a0301e5b5b64142057e8885beead (diff)
downloadbcm5719-llvm-b26b49ca63d2198e58774af60b1465e0725657d6.tar.gz
bcm5719-llvm-b26b49ca63d2198e58774af60b1465e0725657d6.zip
Unbreak MSVC build.
llvm-svn: 141093
Diffstat (limited to 'llvm/lib/TableGen/TGPreprocessor.cpp')
-rw-r--r--llvm/lib/TableGen/TGPreprocessor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/TableGen/TGPreprocessor.cpp b/llvm/lib/TableGen/TGPreprocessor.cpp
index ac89e880086..6c82ee38302 100644
--- a/llvm/lib/TableGen/TGPreprocessor.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud