#include <_PDCLIB_glue.h>
-int fseek( struct _PDCLIB_file_t * _PDCLIB_restrict stream, long offset, int whence )
+int fseek( struct _PDCLIB_file_t * stream, long offset, int whence )
{
if ( stream->status & _PDCLIB_FWRITE )
{
{
stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE );
}
- return _PDCLIB_seek( stream, offset, whence );
+ return ( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF;
}
#endif