From f7033da09e8ca2932ee2f5c40ae8277cad3e1958 Mon Sep 17 00:00:00 2001 From: Andreas Reischuck Date: Thu, 22 May 2025 02:18:18 +0200 Subject: [PATCH] Avoid include locale inline if C++20 modules are enabled (#4451) MSVC hints with: ``` fmt\include\fmt\format-inl.h(26): warning C5244: '#include ' in the purview of module 'fmt' appears erroneous. Consider moving that directive before the module declaration, or replace the textual inclusion with 'import ;'. ``` Then fails the build with `type redefinition`. --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 888fa356..f0b68846 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -22,7 +22,7 @@ #include "format.h" -#if FMT_USE_LOCALE +#if FMT_USE_LOCALE && !defined(FMT_MODULE) # include #endif