1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Remove uber-gross hack. The define _snprintf to snprintf is invalid due to two reasons: 1. Accroding to C++ standard snprintf should be available in std namespace (and __gnu_cxx in case of GCC to). Such ifdef will change all snprintf's to _snprintf's, but won't bring snprintf to all necessary namespaces. Thus e.g. any locale-using code on mingw will yield an error (include this file + string to see the result) 2. MSVCRT's _snprintf does not comply with C99 standard. Standard one is snprintf.

llvm-svn: 91842
This commit is contained in:
Anton Korobeynikov 2009-12-21 20:19:37 +00:00
parent 89d281c7c3
commit 299ec7d3e7

View File

@ -25,9 +25,6 @@
#include <cassert>
#include <cstdio>
#ifdef WIN32
#define snprintf _snprintf
#endif
namespace llvm {