diff options
Diffstat (limited to 'newlib/libc/stdio/ftello.c')
-rw-r--r-- | newlib/libc/stdio/ftello.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c index f4c28b4..918883c 100644 --- a/newlib/libc/stdio/ftello.c +++ b/newlib/libc/stdio/ftello.c @@ -18,9 +18,21 @@ #include <stdio.h> _off_t -_DEFUN (ftello, (fp), +_DEFUN (_ftello_r, (ptr, fp), + struct _reent * ptr _AND register FILE * fp) { /* for now we simply cast since off_t should be long */ - return (_off_t)ftell (fp); + return (_off_t)_ftell_r (ptr, fp); } + +#ifndef _REENT_ONLY + +_off_t +_DEFUN (ftello, (fp), + register FILE * fp) +{ + return (_off_t)_ftell_r (_REENT, fp); +} + +#endif /* !_REENT_ONLY */ |