diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-15 06:23:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-15 06:23:11 +0000 |
commit | 844468017075bab337bf6db217f63d1fb910cea6 (patch) | |
tree | 590113c46096c3e8ca8018e49296064e9182efc9 /libio/libio.h | |
parent | 5db915715f800d0858346bfbb5eea6aff4287ebd (diff) | |
download | glibc-844468017075bab337bf6db217f63d1fb910cea6.tar.gz |
Update.
2001-08-14 Ulrich Drepper <drepper@redhat.com>
* stdio-common/perror.c (perror): Use _IO_fwide instead of fwide.
* libio/libio.h (_IO_fwide): Handle zero as second parameter more
efficiently in macro.
Diffstat (limited to 'libio/libio.h')
-rw-r--r-- | libio/libio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libio/libio.h b/libio/libio.h index 880edaf289..1bd31894e8 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,93,94,95,97,98,99,2000 Free Software Foundation, Inc. +/* Copyright (C) 1991-1995, 1997-2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner <bothner@cygnus.com>. @@ -495,6 +495,8 @@ weak_extern (_IO_stdin_used); (__fp)->_mode = -1; \ __result = (__fp)->_mode; \ } \ + else if (__builtin_constant_p (__mode) && (__mode) == 0) \ + __result = (__fp)->_mode; \ else \ __result = _IO_fwide (__fp, __result); \ __result; }) |