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:
aadadb3
)
Restore snprintf weirdness for VCPP only
author
Anton Korobeynikov
<asl@math.spbu.ru>
Tue, 22 Dec 2009 20:11:00 +0000
(20:11 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Tue, 22 Dec 2009 20:11:00 +0000
(20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91918
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/Format.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Format.h
b/include/llvm/Support/Format.h
index 164ad6a35330931d84b67d9a56ed16c65030215b..f64e3db7d6506acb6e7443d5a7a80e2df1c06713 100644
(file)
--- a/
include/llvm/Support/Format.h
+++ b/
include/llvm/Support/Format.h
@@
-25,6
+25,14
@@
#include <cassert>
#include <cstdio>
+#ifdef _MSC_VER
+// FIXME: This define is wrong:
+// - _snprintf does not guarantee that trailing null is always added - if
+// there is no space for null, it does not report any error.
+// - According to C++ standard, snprintf should be visible in the 'std'
+// namespace - this define makes this impossible.
+#define snprintf _snprintf
+#endif
namespace llvm {