summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fseeko.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fseeko.c')
-rw-r--r--newlib/libc/stdio/fseeko.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/newlib/libc/stdio/fseeko.c b/newlib/libc/stdio/fseeko.c
index 62a9d43be..0d655d0e7 100644
--- a/newlib/libc/stdio/fseeko.c
+++ b/newlib/libc/stdio/fseeko.c
@@ -15,14 +15,16 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#include <_ansi.h>
+#include <reent.h>
#include <stdio.h>
int
-_DEFUN (_fseeko_r, (ptr, fp, offset, whence),
- struct _reent *ptr _AND
- register FILE *fp _AND
- _off_t offset _AND
- int whence)
+_DEFUN(_fseeko_r, (ptr, fp, offset, whence),
+ struct _reent *ptr _AND
+ register FILE *fp _AND
+ _off_t offset _AND
+ int whence)
{
return _fseek_r (ptr, fp, (long)offset, whence);
}
@@ -30,10 +32,10 @@ _DEFUN (_fseeko_r, (ptr, fp, offset, whence),
#ifndef _REENT_ONLY
int
-fseeko (fp, offset, whence)
- register FILE *fp;
- _off_t offset;
- int whence;
+_DEFUN(fseeko, (fp, offset, whence),
+ register FILE *fp _AND
+ _off_t offset _AND
+ int whence)
{
/* for now we simply cast since off_t should be long */
return _fseek_r (_REENT, fp, (long)offset, whence);