vcpkg/ports/fmt/fix-visibility.patch

13 lines
576 B
Diff
Raw Normal View History

2024-02-27 17:02:58 +08:00
diff --git a/include/fmt/core.h b/include/fmt/core.h
index b51c1406..bb139509 100644
--- a/include/fmt/core.h
+++ b/include/fmt/core.h
@@ -2306,6 +2306,7 @@ enum class state { start, align, sign, hash, zero, width, precision, locale };
// Parses standard format specifiers.
template <typename Char>
+FMT_VISIBILITY("hidden") // Suppress an ld warning on macOS (#3769).
FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(
const Char* begin, const Char* end, dynamic_format_specs<Char>& specs,
basic_format_parse_context<Char>& ctx, type arg_type) -> const Char* {