From 0c54ca727011a0630ff8bfd40206167a202088d9 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 20 Feb 2020 03:07:03 +0100 Subject: [PATCH] get rid of boost.locale under paindroid --- src/currency_core/currency_format_utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/currency_core/currency_format_utils.cpp b/src/currency_core/currency_format_utils.cpp index 7c75dc10..0e403ebe 100644 --- a/src/currency_core/currency_format_utils.cpp +++ b/src/currency_core/currency_format_utils.cpp @@ -7,7 +7,9 @@ #include "include_base_utils.h" #include -#include +#ifndef ANDROID_BUILD + #include +#endif using namespace epee; #include "print_fixed_point_helper.h" @@ -2677,6 +2679,7 @@ namespace currency return o << "<" << r.n << ":" << r.tx_id << ">"; } //-------------------------------------------------------------------------------- +#ifndef ANDROID_BUILD const std::locale& utf8_get_conversion_locale() { static std::locale loc = boost::locale::generator().generate("en_US.UTF-8"); @@ -2696,6 +2699,7 @@ namespace currency return true; return utf8_to_lower(s).find(utf8_to_lower(match), 0) != std::string::npos; } +#endif //-------------------------------------------------------------------------------- bool operator ==(const currency::transaction& a, const currency::transaction& b) { return currency::get_transaction_hash(a) == currency::get_transaction_hash(b);