From 45b4f603486cbfc85fcb60d055862eb593ec5b4e Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Mon, 1 Apr 2024 11:23:39 +0000 Subject: [PATCH] mu-utils: Fix build with musl In musl, `stdout` is a macro that expands to `(stdout)`, and `::(stdout)` is not valid C++. ../mu-1.12.2/lib/utils/mu-utils.hh:268:32: error: expected id-expression before '(' token 268 | ::stdout); | ^~~~~~ Nothing in the Mu namespace is named stdout, so it is safe to drop the `::`. Bug: https://bugs.gentoo.org/928361 --- lib/utils/mu-utils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/mu-utils.hh b/lib/utils/mu-utils.hh index 9937bee7..cef84b4f 100644 --- a/lib/utils/mu-utils.hh +++ b/lib/utils/mu-utils.hh @@ -265,7 +265,7 @@ bool fputs_encoded (const std::string& str, FILE *stream); template static inline bool mu_print_encoded(fmt::format_string frm, T&&... args) noexcept { return fputs_encoded(fmt::format(frm, std::forward(args)...), - ::stdout); + stdout); } /**