mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 08:36:52 +00:00
Restore snprintf weirdness for VCPP only
llvm-svn: 91918
This commit is contained in:
parent
4a7bce50b8
commit
903c2a0cb5
@ -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…
Reference in New Issue
Block a user