diff Plugins/Input/wma/libffwma/file.c @ 218:0bea7509d6ba trunk

[svn] Working WMA support. I never said it would be pretty, neno, I should said it would play.
author chainsaw
date Mon, 21 Nov 2005 14:59:13 -0800
parents 12004b385a96
children ad1e65c6a854
line wrap: on
line diff
--- a/Plugins/Input/wma/libffwma/file.c	Sun Nov 20 20:02:32 2005 -0800
+++ b/Plugins/Input/wma/libffwma/file.c	Mon Nov 21 14:59:13 2005 -0800
@@ -18,15 +18,9 @@
  */
 #include "avformat.h"
 #include <fcntl.h>
-#ifndef CONFIG_WIN32
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
-#else
-#include <io.h>
-#define open(fname,oflag,pmode) _open(fname,oflag,pmode)
-#endif /* CONFIG_WIN32 */
-
 
 /* standard file protocol */
 
@@ -42,9 +36,7 @@
     } else {
         access = O_RDONLY;
     }
-#if defined(CONFIG_WIN32) || defined(CONFIG_OS2) || defined(__CYGWIN__)
-    access |= O_BINARY;
-#endif
+    
     fd = open(filename, access, 0666);
     if (fd < 0)
         return -ENOENT;
@@ -68,11 +60,7 @@
 static offset_t file_seek(URLContext *h, offset_t pos, int whence)
 {
     int fd = (int)h->priv_data;
-#ifdef CONFIG_WIN32
-    return _lseeki64(fd, pos, whence);
-#else
     return lseek(fd, pos, whence);
-#endif
 }
 
 static int file_close(URLContext *h)