From d0ce853bc071aec4f6e81de08529c36e328469dc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Dec 2000 17:10:20 +0000 Subject: (perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO. --- stdio-common/perror.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdio-common') diff --git a/stdio-common/perror.c b/stdio-common/perror.c index 239d43e..77a1d9f 100644 --- a/stdio-common/perror.c +++ b/stdio-common/perror.c @@ -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); } -- cgit v1.1