From 10b939b096700b26819c8292a59b3bd108a91618 Mon Sep 17 00:00:00 2001 From: Elias Kosunen Date: Thu, 15 Mar 2018 10:23:12 +0200 Subject: [PATCH] Remove unneeded usage of anonymous struct on clang --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index ab19c85af84b..5ce68bff339b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -157,7 +157,7 @@ #endif // A workaround for gcc 4.4 that doesn't support union members with ctors. -#if FMT_GCC_VERSION && FMT_GCC_VERSION <= 404 +#if (FMT_GCC_VERSION && FMT_GCC_VERSION <= 404) && !defined(__clang__) # define FMT_UNION struct #else # define FMT_UNION union