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