[libdvdcss-devel] [PATCH 25/47] device: Move Win32-specific fallback macro to common.h

Diego Biurrun diego at biurrun.de
Wed Oct 29 21:33:25 CET 2014


---
 src/common.h | 4 ++++
 src/device.c | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/common.h b/src/common.h
index b4c4fa7..983521e 100644
--- 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
diff --git a/src/device.c b/src/device.c
index cd32acd..0c77b63 100644
--- a/src/device.c
+++ b/src/device.c
@@ -567,10 +567,6 @@ static int win2k_seek( dvdcss_t dvdcss, int i_blocks )
 {
     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 */
-- 
1.9.1



More information about the libdvdcss-devel mailing list