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