[vlc-commits] Win32: move 64 bits lseek define to vlc_fs.h
Rafaël Carré
git at videolan.org
Tue Jun 19 09:21:53 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Jun 18 17:21:45 2012 +0200| [5a7311926dc031026298fcd0c6b57514b81f677a] | committer: Rafaël Carré
Win32: move 64 bits lseek define to vlc_fs.h
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a7311926dc031026298fcd0c6b57514b81f677a
---
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>
More information about the vlc-commits
mailing list