diff --git a/include/xo/indentlog/print/function.hpp b/include/xo/indentlog/print/function.hpp index 095df5c..9a6e56e 100644 --- a/include/xo/indentlog/print/function.hpp +++ b/include/xo/indentlog/print/function.hpp @@ -147,7 +147,12 @@ namespace xo { /* clang footnote like [CharT = char] instead of [with CharT = char] */ std::size_t p = s.find(" ["); #else +# if (__GNUC__ > 13) || ((__GNUC__ == 13) && (__GNUC_MINOR__ >= 3)) + /* gcc footnote like [CharT = char] instead of [with CharT = char] starting w/ gcc 13.3 (approximately ?)*/ + std::size_t p = s.find(" ["); +# else std::size_t p = s.find(" [with "); +# endif #endif return s.substr(0, p); diff --git a/include/xo/indentlog/timeutil/timeutil.hpp b/include/xo/indentlog/timeutil/timeutil.hpp index f1b2a93..1a2a024 100644 --- a/include/xo/indentlog/timeutil/timeutil.hpp +++ b/include/xo/indentlog/timeutil/timeutil.hpp @@ -259,7 +259,7 @@ namespace xo { auto [t0_tm, t0_usec] = utc_split_tm(t0); /* no std::format in clang11 afaict */ - char usec_buf[8]; + char usec_buf[15]; snprintf(usec_buf, sizeof(usec_buf), "%06d", t0_usec);