restore required header

This commit is contained in:
Axel Kohlmeyer 2020-05-26 15:22:03 -04:00
parent b5b71bbb92
commit 4a2ddb2c5e
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
3 changed files with 1416 additions and 2 deletions

View File

@ -189,7 +189,7 @@
FMT_INLINE_NAMESPACE v6 {
#endif
#if defined(_WIN32)
#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
# if FMT_MSC_VER
# define FMT_NO_W4275 __pragma(warning(suppress : 4275))
# else
@ -222,7 +222,11 @@
# define FMT_INSTANTIATION_DEF_API FMT_API
#endif
#define FMT_EXTERN extern
#ifndef FMT_HEADER_ONLY
# define FMT_EXTERN extern
#else
# define FMT_EXTERN
#endif
// libc++ supports string_view in pre-c++17.
#if (FMT_HAS_INCLUDE(<string_view>) && \

1403
src/fmt/format-inl.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -3638,4 +3638,11 @@ FMT_END_NAMESPACE
# define fmt(s) FMT_STRING_IMPL(s, [[deprecated]])
#endif
#ifdef FMT_HEADER_ONLY
# define FMT_FUNC inline
# include "format-inl.h"
#else
# define FMT_FUNC
#endif
#endif // FMT_FORMAT_H_