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;