Skip to content

Commit 964f9a1

Browse files
author
Gao Mingfei
committed
Fix chrono locale format bug for RHEL gcc
Fix #3858 Signed-off-by: Gao Mingfei <[email protected]>
1 parent 0166f45 commit 964f9a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fmt/chrono.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
399399
// char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
400400
// gcc-4.
401401
#if FMT_MSC_VERSION != 0 || \
402-
(defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
402+
(defined(__GLIBCXX__) && \
403+
(!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI == 0))
403404
// The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
404405
// and newer.
405406
using code_unit = wchar_t;

0 commit comments

Comments
 (0)