[vlc-devel] [PATCH 1/3] Win32: move 64 bits lseek define to vlc_fs.h

Rafaël Carré funman at videolan.org
Mon Jun 18 17:29:20 CEST 2012


---
 include/vlc_fs.h      |    1 +
 modules/access/file.c |    7 -------
 modules/access/vdr.c  |    5 -----
 3 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/include/vlc_fs.h b/include/vlc_fs.h
index 94b8515..b464bcd 100644
--- a/include/vlc_fs.h
+++ b/include/vlc_fs.h
@@ -72,6 +72,7 @@ static inline void vlc_rewinddir( DIR *dir )
 #  ifndef fstat
 #   define fstat _fstati64
 #  endif
+# define lseek _lseeki64
 # endif
 #endif
 
diff --git a/modules/access/file.c b/modules/access/file.c
index e113bfb..5dd4a2a 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -53,13 +53,6 @@
 #endif
 #include <dirent.h>
 
-#if defined( WIN32 ) && !defined( UNDER_CE )
-#   ifdef lseek
-#      undef lseek
-#   endif
-#   define lseek _lseeki64
-#endif
-
 #include <vlc_common.h>
 #include "fs.h"
 #include <vlc_input.h>
diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 79653bf..98a4122 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -58,11 +58,6 @@ See http://www.vdr-wiki.de/ and http://www.tvdr.de/ for more information.
 #include <time.h>
 #include <errno.h>
 
-#if defined( WIN32 ) && !defined( UNDER_CE )
-#   undef lseek
-#   define lseek _lseeki64
-#endif
-
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_access.h>
-- 
1.7.9.5



More information about the vlc-devel mailing list