vlc | branch: master | Felix Abecassis <[email protected]> | Fri Nov 29 
17:43:12 2013 +0100| [b7916b9ff65d45c149e2ae7bdaefe16c3c56a697] | committer: 
Jean-Baptiste Kempf

Avoid redeclaration of lseek under MSVC.

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7916b9ff65d45c149e2ae7bdaefe16c3c56a697
---

 include/vlc_fs.h |    6 ++++--
 1 file 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__

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to