mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO.
This commit is contained in:
@ -39,8 +39,10 @@ perror (const char *s)
|
|||||||
|
|
||||||
errstring = __strerror_r (errnum, buf, sizeof buf);
|
errstring = __strerror_r (errnum, buf, sizeof buf);
|
||||||
|
|
||||||
|
#ifdef USE_IN_LIBIO
|
||||||
if (fwide (stderr, 0) > 0)
|
if (fwide (stderr, 0) > 0)
|
||||||
(void) fwprintf (stderr, L"%s%s%s\n", s, colon, errstring);
|
(void) fwprintf (stderr, L"%s%s%s\n", s, colon, errstring);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
(void) fprintf (stderr, "%s%s%s\n", s, colon, errstring);
|
(void) fprintf (stderr, "%s%s%s\n", s, colon, errstring);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user