diff --git a/include/spdlog/details/format.h b/include/spdlog/details/format.h index 8046e6142d..eaaeb898eb 100644 --- a/include/spdlog/details/format.h +++ b/include/spdlog/details/format.h @@ -2163,6 +2163,7 @@ class ArgFormatterBase: public ArgVisitor typedef typename BasicWriter::CharPtr CharPtr; Char fill = internal::CharTraits::cast(spec_.fill()); CharPtr out = CharPtr(); +#undef CHAR_WIDTH const unsigned CHAR_WIDTH = 1; if (spec_.width_ > CHAR_WIDTH) {