From 9c8d03d952674f521d444955307e3fefdef71c7f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 25 Apr 2007 14:35:54 +0000 Subject: * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version. 2007-04-25 Jakub Jelinek * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version. --- libio/bits/stdio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libio/bits') diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h index 2731162c7f..4d23f28db0 100644 --- a/libio/bits/stdio.h +++ b/libio/bits/stdio.h @@ -44,6 +44,16 @@ getchar (void) } +# ifdef __USE_MISC +/* Faster version when locking is not necessary. */ +__STDIO_INLINE int +fgetc_unlocked (FILE *__fp) +{ + return _IO_getc_unlocked (__fp); +} +# endif /* misc */ + + # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -- cgit v1.2.3