Skip to content

Commit 9b7db99

Browse files
committed
No reliable way to figure out the libstdc++ version, but all useful stls on Android deprecate auto_ptr.
1 parent 216f1a4 commit 9b7db99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib_json/json_tool.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#elif defined(__clang__) && defined(__USE_ISOCXX11) && defined(__GLIBCXX__)
2222
// clang with libstdc++
2323
#define JSON_USE_UNIQUE_PTR
24+
#elif defined(__ANDROID__)
25+
// android with libstdc++ or libc++
26+
#define JSON_USE_UNIQUE_PTR
2427
#endif
2528

2629
namespace Json {

0 commit comments

Comments
 (0)