From 7db81061d745e47e6aae1b947c7a5b40084529de Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 10 Jan 2007 19:35:41 +0000 Subject: Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21874 b3059339-0415-0410-9bf9-f77b7e298cf2 --- osdep/fseeko.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'osdep/fseeko.c') diff --git a/osdep/fseeko.c b/osdep/fseeko.c index decbaf5c8f..7d942a1c25 100644 --- a/osdep/fseeko.c +++ b/osdep/fseeko.c @@ -4,13 +4,11 @@ */ #include "config.h" - -#if !defined(HAVE_FSEEKO) || !defined(HAVE_FTELLO) + #include #include #include #include -#endif #ifdef WIN32 #define flockfile @@ -25,7 +23,6 @@ * This is thread-safe on BSD/OS using flockfile/funlockfile. */ -#ifndef HAVE_FSEEKO int fseeko(FILE *stream, off_t offset, int whence) { @@ -68,17 +65,3 @@ failure: funlockfile(stream); return -1; } -#endif - - -#ifndef HAVE_FTELLO -off_t -ftello(FILE *stream) -{ - fpos_t floc; - - if (fgetpos(stream, &floc) != 0) - return -1; - return floc; -} -#endif -- cgit v1.2.3