(perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO.

This commit is contained in:
Ulrich Drepper 2000-12-06 17:10:20 +00:00
parent f4abea70d9
commit d0ce853bc0

View File

@ -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);
}