mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Restore snprintf weirdness for VCPP only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aadadb3973
commit
4935a02101
@ -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 {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user