Skip to content

Commit 2646ac5

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib_json/json_reader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
#elif defined(__ANDROID__) || defined(__QNXNTO__)
3131
#define snprintf snprintf
3232
#elif __cplusplus >= 201103L
33+
#if !defined(__MINGW32__)
3334
#define snprintf std::snprintf
3435
#endif
36+
#endif
3537

3638
#if defined(__QNXNTO__)
3739
#define sscanf std::sscanf

0 commit comments

Comments
 (0)