From 7d438a2d5b25b14f73b58242af38361cb57fb0b6 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Thu, 20 May 2021 17:30:25 +0200 Subject: [PATCH] Restore support for `wchar_t` overloads in module --- include/fmt/wchar.h | 2 ++ src/fmt.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/include/fmt/wchar.h b/include/fmt/wchar.h index 7336b88cef2c..b3049b5fe5cd 100644 --- a/include/fmt/wchar.h +++ b/include/fmt/wchar.h @@ -13,6 +13,7 @@ #include "format.h" FMT_BEGIN_NAMESPACE +FMT_MODULE_EXPORT_BEGIN using wformat_parse_context = basic_format_parse_context; using wformat_context = buffer_context; @@ -60,6 +61,7 @@ template void print(wformat_string fmt, T&&... args) { return vprint(wstring_view(fmt), make_wformat_args(args...)); } +FMT_MODULE_EXPORT_END FMT_END_NAMESPACE #endif // FMT_WCHAR_H_ diff --git a/src/fmt.cc b/src/fmt.cc index b0d805da4194..1dbe3cbe2cf8 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -86,6 +86,7 @@ export module fmt; #include "fmt/locale.h" #include "fmt/chrono.h" #include "fmt/printf.h" +#include "fmt/wchar.h" #include "fmt/os.h" module : private;