summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;