From a3ba6b4f62ea86431056755a4079b4126598deef Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 8 Sep 2018 09:55:41 -0700 Subject: [PATCH] Disable the fmt(...) macro by default (#853) --- include/fmt/format.h | 2 +- test/ostream-test.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 619402ce..cedf520a 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3859,7 +3859,7 @@ FMT_END_NAMESPACE return S{}; \ }() -#ifndef FMT_NO_FMT_STRING_ALIAS +#if defined(FMT_STRING_ALIAS) && FMT_STRING_ALIAS /** \rst Constructs a compile-time format string. diff --git a/test/ostream-test.cc b/test/ostream-test.cc index 96f6066c..cfde1889 100644 --- a/test/ostream-test.cc +++ b/test/ostream-test.cc @@ -5,6 +5,7 @@ // // For the license information refer to format.h. +#define FMT_STRING_ALIAS 1 #include "fmt/ostream.h" #include