diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-22 20:11:00 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-12-22 20:11:00 +0000 |
| commit | 580cbae09ddd2b501bfadb957a93abef669b4ed5 (patch) | |
| tree | c05ae2a9b22c0555dceb4d14f0184ad8353be923 /include/llvm | |
| parent | 322d2636771b5f2d11f0a00895d13e0f81d8c778 (diff) | |
| download | external_llvm-580cbae09ddd2b501bfadb957a93abef669b4ed5.zip external_llvm-580cbae09ddd2b501bfadb957a93abef669b4ed5.tar.gz external_llvm-580cbae09ddd2b501bfadb957a93abef669b4ed5.tar.bz2 | |
Restore snprintf weirdness for VCPP only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
| -rw-r--r-- | include/llvm/Support/Format.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/Format.h b/include/llvm/Support/Format.h index 164ad6a..f64e3db 100644 --- 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 { |
