From 0f98773164415ef70eef35daedab115935692524 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 27 Dec 2017 17:46:03 +0800 Subject: [PATCH] add transition helper to format.h the transition from v3 to v4 introduced an API change that format.h does not provide printf functionality. to easi the transition we introduce a define `FMT_FORMAT_PROVIDE_PRINTF` that will pull in printf.h from format.h --- fmt/format.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fmt/format.h b/fmt/format.h index eccefed99ca7..d4eeaa64cada 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -25,6 +25,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// transition helper +#ifdef FMT_FORMAT_PROVIDE_PRINTF +#include "printf.h" +#endif + #ifndef FMT_FORMAT_H_ #define FMT_FORMAT_H_