From 989378930af0c5250775ea34a338f02c48fd767c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 13 May 2018 08:53:04 -0700 Subject: [PATCH] Detect inline namespaces on gcc --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 8580cc93..66597eed 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -134,7 +134,8 @@ #endif #ifndef FMT_BEGIN_NAMESPACE -# if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_MSC_VER >= 1900 +# if FMT_HAS_FEATURE(cxx_inline_namespaces) || FMT_GCC_VERSION >= 404 || \ + FMT_MSC_VER >= 1900 # define FMT_INLINE_NAMESPACE inline namespace # define FMT_END_NAMESPACE }} # else