mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2026-03-10 08:41:44 +01:00
Fix hook for putc_unlocked() with glibc.
putc_unlocked() is a macro which expands to __overflow() in some cases.
This commit is contained in:
@@ -52,5 +52,9 @@ int main(int argc, char **argv unused) {
|
||||
write(42, "stderr ...\n", 11);
|
||||
write(471, "more on stdout\n", 15);
|
||||
|
||||
/* Glibc uses __overflow() for this ... */
|
||||
putc_unlocked('x', stderr);
|
||||
putc_unlocked('\n', stdout);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user