Skip to content

Commit d5e54d2

Browse files
committed
Merge pull request open-source-parsers#277 from gogo40/master
fix compile error on android But note that we do not have continuous integration testing for Android. This could break again. `snprintf` drives me crazy. It should have been part of every C library 20 years ago.
2 parents 5256551 + 97e093a commit d5e54d2

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)