From 1f121e844fad436b6fcf8981cc9297f7aad43125 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Tue, 4 Oct 2011 16:28:07 +0000 Subject: [PATCH] Unbreak MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/TableGen/TGPreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/TableGen/TGPreprocessor.cpp b/lib/TableGen/TGPreprocessor.cpp index ac89e880086..6c82ee38302 100644 --- a/lib/TableGen/TGPreprocessor.cpp +++ b/lib/TableGen/TGPreprocessor.cpp @@ -24,6 +24,10 @@ #include #include +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + namespace llvm { typedef std::map TGPPEnvironment; -- 2.34.1