Don't use visibility attribute for djgpp.

COFF objects don't support visibility, so using this attribute
needlessly generates a long list of warnings.
This commit is contained in:
J.W. Jagersma 2022-03-20 19:01:31 +01:00
parent b625c597e7
commit 2d86bc4a79
No known key found for this signature in database
GPG Key ID: 438BF81BA7510C54
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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