From 7bdb8b9382e0acb6ad023372b3f1bd421194cf13 Mon Sep 17 00:00:00 2001 From: Josh Handley Date: Fri, 15 May 2020 16:53:26 -0400 Subject: [PATCH] Don't define JSONCONS_HAS_STRTOLD_L for ANDROID_API < 21 strtolod_l/wcstold_l are only supported when building for Android SDK level 21 and above. Bulding for min SDK less than 21 results in a compile error in parse_number.hpp. --- include/jsoncons/config/compiler_support.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons/config/compiler_support.hpp b/include/jsoncons/config/compiler_support.hpp index 32f2dd3179..69dcd7403f 100644 --- a/include/jsoncons/config/compiler_support.hpp +++ b/include/jsoncons/config/compiler_support.hpp @@ -88,8 +88,8 @@ #endif #if defined(ANDROID) || defined(__ANDROID__) -#define JSONCONS_HAS_STRTOLD_L #if __ANDROID_API__ >= 21 +#define JSONCONS_HAS_STRTOLD_L #else #define JSONCONS_NO_LOCALECONV #endif