3Hren / blackhole

Yet another logging library.
MIT License
201 stars 57 forks source link

Compilation failed due name clash with CHAR_WIDTH. #183

Closed bacek closed 6 years ago

bacek commented 6 years ago
In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:168:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed/limits.h:34,
                 from /usr/include/c++/6/climits:42,
                 from /home/bacek/.../blackhole/src/format.cpp:34:
/home/bacek/.../blackhole/src/format.cpp: In member function ‘void blackhole::fmt::internal::BasicArgFormatter<Impl, Char>::visit_char(int)’:
/home/bacek/.../blackhole/src/format.cpp:460:20: error: expected unqualified-id before numeric constant
     const unsigned CHAR_WIDTH = 1;

Same issue as in (upstream?) https://github.com/fmtlib/fmt/issues/398 which was fixed in https://github.com/fmtlib/fmt/commit/abbefd71666055daac9e14e78262620f9e845850