From 31b3c325f692314b4f3e397618b935e2f5e0c345 Mon Sep 17 00:00:00 2001 From: Cameron Angus Date: Wed, 24 Jul 2024 17:58:38 +0100 Subject: [PATCH] Mark namespace scope constexpr variable 'buffer_size' inline. (#4084) * Mark namespace scope constexpr variable 'buffer_size' inline. * Use provided macro for inline variable. --- include/fmt/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 5c85ea08..974c5c20 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -383,7 +383,7 @@ class file_buffer final : public buffer { } // namespace detail -constexpr auto buffer_size = detail::buffer_size(); +FMT_INLINE_VARIABLE constexpr auto buffer_size = detail::buffer_size(); /// A fast output stream for writing from a single thread. Writing from /// multiple threads without external synchronization may result in a data race.