diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-18 02:49:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-18 02:49:41 +0000 |
commit | 55183f249fff2918c153ca91bc96c8f5d078abfa (patch) | |
tree | 39a3f32e905a5f26ecd64b9c67641b12c2a4d3f6 /misc | |
parent | 89f29a0742e0dc8fa764a2dbb09c06e25909dac9 (diff) | |
download | glibc-55183f249fff2918c153ca91bc96c8f5d078abfa.tar.gz |
2001-08-17 Roland McGrath <roland@frob.com>
* stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
* misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
Likewise.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/error.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/error.c b/misc/error.c index 8306fd569f..1c9c4a6850 100644 --- a/misc/error.c +++ b/misc/error.c @@ -127,7 +127,7 @@ static void error_tail (int status, int errnum, const char *message, va_list args) { # if HAVE_VPRINTF || _LIBC -# ifdef _LIBC +# if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) { # define ALLOCA_LIMIT 2000 @@ -181,7 +181,7 @@ error_tail (int status, int errnum, const char *message, va_list args) #if defined HAVE_STRERROR_R || _LIBC char errbuf[1024]; char *s = __strerror_r (errnum, errbuf, sizeof errbuf); -# ifdef _LIBC +# if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L": %s", s); else @@ -191,7 +191,7 @@ error_tail (int status, int errnum, const char *message, va_list args) fprintf (stderr, ": %s", strerror (errnum)); #endif } -#ifdef _LIBC +#if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) putwc (L'\n', stderr); else @@ -236,7 +236,7 @@ error (status, errnum, message, va_alist) (*error_print_progname) (); else { -#ifdef _LIBC +#if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s: ", program_name); else @@ -317,7 +317,7 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist) (*error_print_progname) (); else { -#ifdef _LIBC +#if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s: ", program_name); else @@ -327,7 +327,7 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist) if (file_name != NULL) { -#ifdef _LIBC +#if _LIBC && USE_IN_LIBIO if (_IO_fwide (stderr, 0) > 0) __fwprintf (stderr, L"%s:%d: ", file_name, line_number); else |