From dd17f89a16e613a5e0ccc60938bb14fb57bf9fd2 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Fri, 16 Jun 2023 14:20:40 +0500 Subject: [PATCH] Fix for issue #3492 (#3493) Signed-off-by: Vladislav Shchapov --- include/fmt/format.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 30ab89973127..6eb0619226b7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -86,10 +86,11 @@ # elif FMT_MSC_VERSION >= 1929 // VS2019 v16.10 and later # define FMT_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]] # endif -# else -# define FMT_NO_UNIQUE_ADDRESS # endif #endif +#ifndef FMT_NO_UNIQUE_ADDRESS +# define FMT_NO_UNIQUE_ADDRESS +#endif #if FMT_GCC_VERSION || defined(__clang__) # define FMT_VISIBILITY(value) __attribute__((visibility(value)))