Remove macro definitions of snprintf and vsnprintf (#7536)

This commit is contained in:
Louis Desreumaux 2021-12-26 01:05:59 +01:00 committed by GitHub
parent 29bfa94bb6
commit 3886c3dd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,13 +22,7 @@
#define fopen64 std::fopen
#endif // !defined(__GNUC__) || defined(__FreeBSD__)
#ifdef _MSC_VER
// NOTE: sprintf_s is not equivalent to snprintf,
// they are equivalent when success, which is sufficient for our case
#define snprintf sprintf_s
#define vsnprintf vsprintf_s
#else
#ifndef _MSC_VER
#ifdef _FILE_OFFSET_BITS
#if _FILE_OFFSET_BITS == 32