diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-10-04 16:28:07 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-10-04 16:28:07 +0000 |
commit | 1f121e844fad436b6fcf8981cc9297f7aad43125 (patch) | |
tree | 8100d8289204cc7a4afdb2dbb95d92855f54f699 /lib/TableGen/TGPreprocessor.cpp | |
parent | 8a567f1fb9cfbbbc3dbedb10e2b5fc77a1e5ba50 (diff) |
Unbreak MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/TGPreprocessor.cpp')
-rw-r--r-- | lib/TableGen/TGPreprocessor.cpp | 4 |
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; |