Add support to CE in format.h
This commit is contained in:
parent
8ad1c12fb4
commit
73caff1156
@ -370,7 +370,7 @@ typedef __int64 intmax_t;
|
|||||||
// otherwise support __builtin_clz and __builtin_clzll, so
|
// otherwise support __builtin_clz and __builtin_clzll, so
|
||||||
// only define FMT_BUILTIN_CLZ using the MSVC intrinsics
|
// only define FMT_BUILTIN_CLZ using the MSVC intrinsics
|
||||||
// if the clz and clzll builtins are not available.
|
// 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 <intrin.h> // _BitScanReverse, _BitScanReverse64
|
# include <intrin.h> // _BitScanReverse, _BitScanReverse64
|
||||||
|
|
||||||
namespace fmt {
|
namespace fmt {
|
||||||
@ -3149,7 +3149,7 @@ void BasicWriter<Char>::write_int(T value, Spec spec) {
|
|||||||
case 'n': {
|
case 'n': {
|
||||||
unsigned num_digits = internal::count_digits(abs_value);
|
unsigned num_digits = internal::count_digits(abs_value);
|
||||||
fmt::StringRef sep = "";
|
fmt::StringRef sep = "";
|
||||||
#ifndef __ANDROID__
|
#if !defined(__ANDROID__) && !defined(UNDER_CE)
|
||||||
sep = internal::thousands_sep(std::localeconv());
|
sep = internal::thousands_sep(std::localeconv());
|
||||||
#endif
|
#endif
|
||||||
unsigned size = static_cast<unsigned>(
|
unsigned size = static_cast<unsigned>(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user