aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-06 17:10:20 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-06 17:10:20 +0000
commitd0ce853bc071aec4f6e81de08529c36e328469dc (patch)
treebc1d3b541bda8f9afc2ec3869ffcaec3a1bd0677 /stdio-common
parentf4abea70d987e43ffe5234c22ba03213434fd0e4 (diff)
downloadglibc-d0ce853bc071aec4f6e81de08529c36e328469dc.zip
glibc-d0ce853bc071aec4f6e81de08529c36e328469dc.tar.gz
glibc-d0ce853bc071aec4f6e81de08529c36e328469dc.tar.bz2
(perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/perror.c2
1 files changed, 2 insertions, 0 deletions
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);
}