projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a567f1
)
Unbreak MSVC build.
author
Francois Pichet
<pichet2000@gmail.com>
Tue, 4 Oct 2011 16:28:07 +0000
(16:28 +0000)
committer
Francois Pichet
<pichet2000@gmail.com>
Tue, 4 Oct 2011 16:28:07 +0000
(16:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/TGPreprocessor.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/TGPreprocessor.cpp
b/lib/TableGen/TGPreprocessor.cpp
index ac89e880086bde94bc36fddf4c63b2066fc05ad6..6c82ee38302c3bd4f78c753dd00c359e63936db0 100644
(file)
--- 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;