changeset 1595:862df89dda4a libavformat

Remove useless MinGW #ifdefs. patch by Ramiro Polla, ramiro lisha.ufsc br
author diego
date Thu, 21 Dec 2006 11:12:55 +0000
parents ffb64cb62cc9
children a38dd0dae328
files file.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/file.c	Wed Dec 20 23:33:50 2006 +0000
+++ b/file.c	Thu Dec 21 11:12:55 2006 +0000
@@ -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 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)