Skip to content

Commit

Permalink
Fix chrono locale format bug for RHEL gcc
Browse files Browse the repository at this point in the history
Fix fmtlib#3858

Signed-off-by: Gao Mingfei <[email protected]>
  • Loading branch information
Gao Mingfei committed Feb 20, 2024
1 parent 0166f45 commit 964f9a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc)
// char16_t and char32_t codecvts are broken in MSVC (linkage errors) and
// gcc-4.
#if FMT_MSC_VERSION != 0 || \
(defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_DUAL_ABI))
(defined(__GLIBCXX__) && \
(!defined(_GLIBCXX_USE_DUAL_ABI) || _GLIBCXX_USE_DUAL_ABI == 0))
// The _GLIBCXX_USE_DUAL_ABI macro is always defined in libstdc++ from gcc-5
// and newer.
using code_unit = wchar_t;
Expand Down

0 comments on commit 964f9a1

Please sign in to comment.