mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Remove useless MinGW #ifdefs.
patch by Ramiro Polla, ramiro lisha.ufsc br Originally committed as revision 7338 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7c057f46e8
commit
2cb396eb8b
@ -20,13 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#ifndef __MINGW32__
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#ifndef __MINGW32__
|
||||||
#include <io.h>
|
#include <sys/ioctl.h>
|
||||||
#define open(fname,oflag,pmode) _open(fname,oflag,pmode)
|
|
||||||
#endif /* __MINGW32__ */
|
#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)
|
static offset_t file_seek(URLContext *h, offset_t pos, int whence)
|
||||||
{
|
{
|
||||||
int fd = (size_t)h->priv_data;
|
int fd = (size_t)h->priv_data;
|
||||||
#if defined(__MINGW32__)
|
|
||||||
return _lseeki64(fd, pos, whence);
|
|
||||||
#else
|
|
||||||
return lseek(fd, pos, whence);
|
return lseek(fd, pos, whence);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int file_close(URLContext *h)
|
static int file_close(URLContext *h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user