diff options
Diffstat (limited to 'newlib/libc/stdio/wbuf.c')
-rw-r--r-- | newlib/libc/stdio/wbuf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c index 95d0e4d71..0d2b72ea1 100644 --- a/newlib/libc/stdio/wbuf.c +++ b/newlib/libc/stdio/wbuf.c @@ -85,3 +85,14 @@ _DEFUN(__swbuf_r, (ptr, c, fp), return EOF; return c; } + +/* 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(__swbuf, (c, fp), + register int c _AND + register FILE *fp) +{ + return __swbuf_r (_REENT, c, fp); +} |