Skip to content

Commit 240ddb6

Browse files
committed
use std::snprintf for C++11
1 parent 9dd77dc commit 240ddb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/lib_json/json_writer.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
3131
#define snprintf _snprintf
32+
#elif __cplusplus >= 201103L
33+
#define snprintf std::snprintf
3234
#endif
3335

3436
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0

0 commit comments

Comments
 (0)