mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-20 14:24:34 +01:00
Merge pull request #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.
This commit is contained in:
commit
d5e54d2609
@ -29,6 +29,8 @@
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
|
||||
#define snprintf _snprintf
|
||||
#elif defined(__ANDROID__)
|
||||
#define snprintf snprintf
|
||||
#elif __cplusplus >= 201103L
|
||||
#define snprintf std::snprintf
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user