[vlc-commits] Avoid redeclaration of lseek under MSVC.
Felix Abecassis
git at videolan.org
Sat Nov 30 21:31:19 CET 2013
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | 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 <jb at videolan.org>
> 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__
More information about the vlc-commits
mailing list