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

Diego Biurrun <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
---
 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

_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.