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

Diego Biurrun git at videolan.org
Thu Oct 30 17:16:33 CET 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Oct 25 01:39:28 2014 +0200| [fedd8500ff1488870c0709ef00c0ed25ecfd18b7] | committer: Diego Biurrun

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

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

 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 a83b0c0..44154b3 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 8475cc9..06b2494 100644
--- a/src/device.c
+++ b/src/device.c
@@ -705,10 +705,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 */



More information about the libdvdcss-devel mailing list