(perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO.
authorUlrich Drepper <drepper@redhat.com>
Wed, 6 Dec 2000 17:10:20 +0000 (17:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 6 Dec 2000 17:10:20 +0000 (17:10 +0000)
stdio-common/perror.c

index 239d43e..77a1d9f 100644 (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);
 }