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