From 2d86bc4a79a31b7a259128d5d4d53c5f45577d44 Mon Sep 17 00:00:00 2001 From: "J.W. Jagersma" Date: Sun, 20 Mar 2022 19:01:31 +0100 Subject: [PATCH] Don't use visibility attribute for djgpp. COFF objects don't support visibility, so using this attribute needlessly generates a long list of warnings. --- include/fmt/core.h | 2 +- include/fmt/format.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 106fd6fe..ee72cc01 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -244,7 +244,7 @@ #else # define FMT_CLASS_API # if defined(FMT_EXPORT) || defined(FMT_SHARED) -# if defined(__GNUC__) || defined(__clang__) +# if (defined(__GNUC__) || defined(__clang__)) && !defined(DJGPP) # define FMT_API __attribute__((visibility("default"))) # endif # endif diff --git a/include/fmt/format.h b/include/fmt/format.h index 2d18621a..45af8c85 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -48,7 +48,7 @@ #include "core.h" -#if FMT_GCC_VERSION +#if FMT_GCC_VERSION && !defined(DJGPP) # define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden"))) #else # define FMT_GCC_VISIBILITY_HIDDEN