shithub: libdvdcss

Download patch

ref: fedd8500ff1488870c0709ef00c0ed25ecfd18b7
parent: 59954f20f6eabdccb44f19eda89b8b9b59a80a76
author: Diego Biurrun <diego@biurrun.de>
date: Fri Oct 24 21:39:28 EDT 2014

device: Move Win32-specific fallback macro to common.h

--- a/src/common.h
+++ b/src/common.h
@@ -48,6 +48,10 @@
 #      define PATH_MAX MAX_PATH
 #   endif
 
+#   ifndef INVALID_SET_FILE_POINTER
+#       define INVALID_SET_FILE_POINTER ((DWORD)-1)
+#   endif
+
 /* several type definitions */
 #   if defined( __MINGW32__ )
 #       define lseek _lseeki64
--- a/src/device.c
+++ b/src/device.c
@@ -705,10 +705,6 @@
 {
     LARGE_INTEGER li_seek;
 
-#ifndef INVALID_SET_FILE_POINTER
-#   define INVALID_SET_FILE_POINTER ((DWORD)-1)
-#endif
-
     if( dvdcss->i_pos == i_blocks )
     {
         /* We are already in position */