Skip to content

Commit bc9b445

Browse files
committed
std::snprintf fix for MinGW32 c++11
1 parent 2646ac5 commit bc9b445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib_json/json_writer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
#elif defined(__ANDROID__) || defined(__QNXNTO__)
5858
#define snprintf snprintf
5959
#elif __cplusplus >= 201103L
60+
#if !defined(__MINGW32__)
6061
#define snprintf std::snprintf
6162
#endif
63+
#endif
6264

6365
#if defined(__BORLANDC__)
6466
#include <float.h>

0 commit comments

Comments
 (0)