From b26b49ca63d2198e58774af60b1465e0725657d6 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Tue, 4 Oct 2011 16:28:07 +0000 Subject: [PATCH] Unbreak MSVC build. llvm-svn: 141093 --- llvm/lib/TableGen/TGPreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/TableGen/TGPreprocessor.cpp b/llvm/lib/TableGen/TGPreprocessor.cpp index ac89e880086b..6c82ee38302c 100644 --- a/llvm/lib/TableGen/TGPreprocessor.cpp +++ b/llvm/lib/TableGen/TGPreprocessor.cpp @@ -24,6 +24,10 @@ #include #include +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + namespace llvm { typedef std::map TGPPEnvironment;