From 58a6bd48a8dc7ea74bb9fd900c60fd333a85725f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 9 Jan 2024 19:54:55 -0800 Subject: [PATCH] Add core.h for compatibility --- include/fmt/base.h | 10 +++++----- include/fmt/core.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 include/fmt/core.h diff --git a/include/fmt/base.h b/include/fmt/base.h index 7a7ef0c8..b47b5553 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1,12 +1,12 @@ -// Formatting library for C++ - the core API for char/UTF-8 +// Formatting library for C++ - the base API for char/UTF-8 // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. -#ifndef FMT_CORE_H_ -#define FMT_CORE_H_ +#ifndef FMT_BASE_H_ +#define FMT_BASE_H_ #include // CHAR_BIT #include // FILE @@ -340,7 +340,7 @@ struct monostate { # define FMT_ENABLE_IF(...) fmt::enable_if_t<(__VA_ARGS__), int> = 0 #endif -// This is defined in core.h instead of format.h to avoid injecting in std. +// This is defined in base.h instead of format.h to avoid injecting in std. // It is a template to avoid undesirable implicit conversions to std::byte. #ifdef __cpp_lib_byte template ::value)> @@ -2952,4 +2952,4 @@ FMT_END_NAMESPACE #ifdef FMT_HEADER_ONLY # include "format.h" #endif -#endif // FMT_CORE_H_ +#endif // FMT_BASE_H_ diff --git a/include/fmt/core.h b/include/fmt/core.h new file mode 100644 index 00000000..b0d6a102 --- /dev/null +++ b/include/fmt/core.h @@ -0,0 +1 @@ +#include "format.h"