From da925e0211b9a754d5deb0f8ca75a4bf36742801 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Sun, 30 Jan 2022 00:50:55 -0600 Subject: [PATCH] Missing FMT_API. --- include/fmt/format-inl.h | 8 ++++---- include/fmt/format.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index f4dc1c7c..d0c03b43 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -2577,10 +2577,10 @@ struct singleton { unsigned char lower_count; }; -FMT_FUNC auto is_printable(uint16_t x, const singleton* singletons, - size_t singletons_size, - const unsigned char* singleton_lowers, - const unsigned char* normal, size_t normal_size) +inline auto is_printable(uint16_t x, const singleton* singletons, + size_t singletons_size, + const unsigned char* singleton_lowers, + const unsigned char* normal, size_t normal_size) -> bool { auto upper = x >> 8; auto lower_start = 0; diff --git a/include/fmt/format.h b/include/fmt/format.h index cf6fc926..d2ba7c9a 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1368,7 +1368,7 @@ auto write_ptr(OutputIt out, UIntPtr value, } // Returns true iff the code point cp is printable. -auto is_printable(uint32_t cp) -> bool; +FMT_API auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' ||