From 73caff1156e045aa263c06474212eb490aca4a88 Mon Sep 17 00:00:00 2001 From: escherstair Date: Thu, 2 Jul 2020 14:11:26 +0200 Subject: [PATCH] Add support to CE in format.h --- fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmt/format.h b/fmt/format.h index fceb24e7..352b29d6 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -370,7 +370,7 @@ typedef __int64 intmax_t; // otherwise support __builtin_clz and __builtin_clzll, so // only define FMT_BUILTIN_CLZ using the MSVC intrinsics // if the clz and clzll builtins are not available. -#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(_MANAGED) +#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(_MANAGED) && !defined(UNDER_CE) # include // _BitScanReverse, _BitScanReverse64 namespace fmt { @@ -3149,7 +3149,7 @@ void BasicWriter::write_int(T value, Spec spec) { case 'n': { unsigned num_digits = internal::count_digits(abs_value); fmt::StringRef sep = ""; -#ifndef __ANDROID__ +#if !defined(__ANDROID__) && !defined(UNDER_CE) sep = internal::thousands_sep(std::localeconv()); #endif unsigned size = static_cast(