[libdvdcss-devel] Win32: undef lseek before redefining it

Jean-Baptiste Kempf git at videolan.org
Sat Nov 1 12:41:37 CET 2014


libdvdcss | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov  1 12:41:07 2014 +0100| [2afa6f86a3ab9e8ac3f387944f8d1562c5b194c6] | committer: Jean-Baptiste Kempf

Win32: undef lseek before redefining it

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=2afa6f86a3ab9e8ac3f387944f8d1562c5b194c6
---

 src/common.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common.h b/src/common.h
index 207be79..3e12345 100644
--- a/src/common.h
+++ b/src/common.h
@@ -50,6 +50,7 @@
 
 /* several type definitions */
 #   if defined( __MINGW32__ )
+#       undef lseek
 #       define lseek _lseeki64
 #       if !defined( _OFF_T_ )
 typedef long long _off_t;
@@ -61,6 +62,7 @@ typedef _off_t off_t;
 #   endif /* defined( __MINGW32__ ) */
 
 #   if defined( _MSC_VER )
+#       undef lseek
 #       define lseek _lseeki64
 #       if !defined( _OFF_T_DEFINED )
 typedef __int64 off_t;



More information about the libdvdcss-devel mailing list