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 -#ifndef __MINGW32__ #include -#include #include -#else -#include -#define open(fname,oflag,pmode) _open(fname,oflag,pmode) +#ifndef __MINGW32__ +#include #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)