[vlc-devel] [PATCH 11/12] Avoid redeclaration of lseek under MSVC.

Felix Abecassis felix.abecassis at gmail.com
Fri Nov 29 17:43:12 CET 2013


---
 include/vlc_fs.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/vlc_fs.h b/include/vlc_fs.h
index e0fc4b5..86be4c2 100644
--- a/include/vlc_fs.h
+++ b/include/vlc_fs.h
@@ -71,8 +71,10 @@ static inline void vlc_rewinddir( DIR *dir )
 # ifndef fstat
 #  define fstat _fstati64
 # endif
-# undef lseek
-# define lseek _lseeki64
+# ifndef _MSC_VER
+#  undef lseek
+#  define lseek _lseeki64
+# endif
 #endif
 
 #ifdef __ANDROID__
-- 
1.7.9




More information about the vlc-devel mailing list