shithub: libdvdcss

Download patch

ref: 2afa6f86a3ab9e8ac3f387944f8d1562c5b194c6
parent: 4c8f0b12c8b2df87e4a9dfe06f01a54fbb58c67b
author: Jean-Baptiste Kempf <[email protected]>
date: Sat Nov 1 08:41:07 EDT 2014

Win32: undef lseek before redefining it

--- 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 @@
 #   endif /* defined( __MINGW32__ ) */
 
 #   if defined( _MSC_VER )
+#       undef lseek
 #       define lseek _lseeki64
 #       if !defined( _OFF_T_DEFINED )
 typedef __int64 off_t;