From c8956c6fecf0d1390241eefc6a95f9c97fab1e7e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 15 Jun 2006 16:08:09 +0000 Subject: 2006-06-15 Corinna Vinschen * libc/include/stdio.h (__sgetc_r): Fix typo. * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r. * libc/stdio/rget.c (__srbuf): Reinstantiate. * libc/stdio/wbuf.c (__swbuf): Ditto. --- newlib/libc/stdio/rget.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'newlib/libc/stdio/rget.c') diff --git a/newlib/libc/stdio/rget.c b/newlib/libc/stdio/rget.c index 1c0bc474c..0444acee3 100644 --- a/newlib/libc/stdio/rget.c +++ b/newlib/libc/stdio/rget.c @@ -43,3 +43,13 @@ _DEFUN(__srget_r, (ptr, fp), } return EOF; } + +/* This function isn't any longer declared in stdio.h, but it's + required for backward compatibility with applications built against + earlier dynamically built newlib libraries. */ +int +_DEFUN(__srget, (fp), + register FILE *fp) +{ + return __srget_r (_REENT, fp); +} -- cgit v1.2.3