Skip to content

Commit 97e093a

Browse files
committed
fix compile error on android
1 parent 5256551 commit 97e093a

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
@@ -29,6 +29,8 @@
2929

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

0 commit comments

Comments
 (0)