mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-10 00:48:33 +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;
|
||||
}
|
||||
|
||||
@@ -6,3 +6,4 @@
|
||||
>STDERR>more on stderr
|
||||
<STDERR<>STDERR>stderr ...
|
||||
<STDERR<more on stdout
|
||||
>STDERR>x<STDERR<
|
||||
|
||||
Reference in New Issue
Block a user