From 99c2f7a349716411735411153d000767b6116f7b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 10 Apr 2021 07:44:36 -0700 Subject: [PATCH] Allow including fmt/core.h in the header-only mode --- include/fmt/core.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index 45bf19bb..086a2deb 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1957,6 +1957,9 @@ inline void print(const S& format_str, Args&&... args) { FMT_GCC_PRAGMA("GCC pop_options") FMT_END_NAMESPACE +#ifdef FMT_HEADER_ONLY +#include "format.h" +#endif #endif // FMT_CORE_H_ // Define FMT_DYNAMIC_ARGS to make core.h provide dynamic_format_arg_store