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 | b26b49ca63d2198e58774af60b1465e0725657d6 (patch) | |
tree | f0bdedba65376dd42857ec2a63e6391413742ea6 /llvm/lib/TableGen | |
parent | 41090ed753b4a0301e5b5b64142057e8885beead (diff) | |
download | bcm5719-llvm-b26b49ca63d2198e58774af60b1465e0725657d6.tar.gz bcm5719-llvm-b26b49ca63d2198e58774af60b1465e0725657d6.zip |
Unbreak MSVC build.
llvm-svn: 141093
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r-- | llvm/lib/TableGen/TGPreprocessor.cpp | 4 |
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; |