summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGPreprocessor.cpp
diff options
context:
space:
mode:
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