From 30ebfa425eb32b056a1e0c35863378ffe2c59eac Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 21 Feb 2024 19:55:58 +0100 Subject: [PATCH] Inline definition imported from multiple sources. --- include/utils/format/filesystem_path.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/format/filesystem_path.h b/include/utils/format/filesystem_path.h index f6f8d697a7..e3b7bbecfd 100644 --- a/include/utils/format/filesystem_path.h +++ b/include/utils/format/filesystem_path.h @@ -37,9 +37,9 @@ struct formatter : formatter }; #ifdef _WIN32 -std::string fmt::formatter::USERNAME = std::getenv("USERNAME") != nullptr ? std::getenv("USERNAME") : ""; +inline std::string fmt::formatter::USERNAME = std::getenv("USERNAME") != nullptr ? std::getenv("USERNAME") : ""; #else -std::string fmt::formatter::USERNAME = std::getenv("USER") != nullptr ? std::getenv("USER") : ""; +inline std::string fmt::formatter::USERNAME = std::getenv("USER") != nullptr ? std::getenv("USER") : ""; #endif } // namespace fmt