From b9eb3831c8a4aeca44d6ccae741b9b25287436ff Mon Sep 17 00:00:00 2001 From: Luc Guyot Date: Thu, 21 Nov 2024 17:20:30 +0100 Subject: [PATCH] Fixes duplicated symbols caused by missing inline statement --- src/libcommon/utility/utility_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcommon/utility/utility_base.h b/src/libcommon/utility/utility_base.h index 99e08a74d..ce90b20bc 100644 --- a/src/libcommon/utility/utility_base.h +++ b/src/libcommon/utility/utility_base.h @@ -66,7 +66,7 @@ inline bool isLikeFileNotFoundError(const std::error_code &ec) noexcept { #endif #if defined(__APPLE__) || defined(__unix__) -bool isLikeFileNotFoundError(const std::error_code &ec) noexcept { +inline bool isLikeFileNotFoundError(const std::error_code &ec) noexcept { return ec.value() != static_cast(std::errc::no_such_file_or_directory); } #endif