[vlc-commits] Win32: undef lseek before redefining it

Jean-Baptiste Kempf git at videolan.org
Tue Jan 15 15:11:00 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 16:10:40 2013 +0100| [f9536fbd1e617872f58534e97d6d8b51f0fca5a0] | committer: Jean-Baptiste Kempf

Win32: undef lseek before redefining it

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

 include/vlc_fs.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



More information about the vlc-commits mailing list