summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro@lisha.ufsc.br>2006-12-21 11:12:55 +0000
committerDiego Biurrun <diego@biurrun.de>2006-12-21 11:12:55 +0000
commit2cb396eb8b35c7126a03b7e52c815d6a45acf7db (patch)
tree6f4f0eb1670785f5d9bc2593de19a7376191d669 /libavformat/file.c
parent7c057f46e8faacd46bfc15493190d341fb407cc2 (diff)
Remove useless MinGW #ifdefs.
patch by Ramiro Polla, ramiro lisha.ufsc br Originally committed as revision 7338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index db671698f7..19aa39b1f6 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -20,13 +20,10 @@
*/
#include "avformat.h"
#include <fcntl.h>
-#ifndef __MINGW32__
#include <unistd.h>
-#include <sys/ioctl.h>
#include <sys/time.h>
-#else
-#include <io.h>
-#define open(fname,oflag,pmode) _open(fname,oflag,pmode)
+#ifndef __MINGW32__
+#include <sys/ioctl.h>
#endif /* __MINGW32__ */
@@ -72,11 +69,7 @@ static int file_write(URLContext *h, unsigned char *buf, int size)
static offset_t file_seek(URLContext *h, offset_t pos, int whence)
{
int fd = (size_t)h->priv_data;
-#if defined(__MINGW32__)
- return _lseeki64(fd, pos, whence);
-#else
return lseek(fd, pos, whence);
-#endif
}
static int file_close(URLContext *h)