We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newer versions of limits.h include the macro CHAR_WIDTH which collides with a constant in Sailfish.
limits.h
CHAR_WIDTH
Here is the diff needed to fix the issuse:
--- include/spdlog/details/format.cc.orig 2016-06-15 19:46:33.000000000 +0200 +++ include/spdlog/details/format.cc 2019-01-24 07:51:21.578556154 +0100 @@ -480,23 +480,23 @@ typedef typename BasicWriter<Char>::CharPtr CharPtr; Char fill = internal::CharTraits<Char>::cast(spec_.fill()); CharPtr out = CharPtr(); - const unsigned CHAR_WIDTH = 1; - if (spec_.width_ > CHAR_WIDTH) { + const unsigned CHAR_SIZE = 1; + if (spec_.width_ > CHAR_SIZE) { out = writer_.grow_buffer(spec_.width_); if (spec_.align_ == ALIGN_RIGHT) { - std::fill_n(out, spec_.width_ - CHAR_WIDTH, fill); - out += spec_.width_ - CHAR_WIDTH; + std::fill_n(out, spec_.width_ - CHAR_SIZE, fill); + out += spec_.width_ - CHAR_SIZE; } else if (spec_.align_ == ALIGN_CENTER) { out = writer_.fill_padding(out, spec_.width_, - internal::check(CHAR_WIDTH), fill); + internal::check(CHAR_SIZE), fill); } else { - std::fill_n(out + CHAR_WIDTH, spec_.width_ - CHAR_WIDTH, fill); + std::fill_n(out + CHAR_WIDTH, spec_.width_ - CHAR_SIZE, fill); } } else { - out = writer_.grow_buffer(CHAR_WIDTH); + out = writer_.grow_buffer(CHAR_SIZE); } *out = internal::CharTraits<Char>::cast(value); }
The text was updated successfully, but these errors were encountered:
I can confirm this patch works and is needed to compile. I am using GCC 9. Great stuff @SethosII 👍
Sorry, something went wrong.
No branches or pull requests
Newer versions of
limits.h
include the macroCHAR_WIDTH
which collides with a constant in Sailfish.Here is the diff needed to fix the issuse:
The text was updated successfully, but these errors were encountered: