[libdvdcss-devel] [PATCH 7/7] build: Skip checks for IE version >= 5.0

Diego Biurrun diego at biurrun.de
Sun Nov 16 20:37:14 CET 2014


All supported Windows versions have IE 5.0 or later and related APIs.
---
 NEWS              | 4 ++--
 configure.ac      | 4 ----
 libdvdcss.spec.in | 6 ++----
 src/libdvdcss.c   | 8 ++++----
 4 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/NEWS b/NEWS
index 86c7780..91cc13d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,8 @@
 Changes since 1.3.0:
 --------------------
   * Drop support for HP-UX.
-  * Drop support for Windows 9x.
-    Windows NT 4.0 SP4 with IE 5.0 is now required.
+  * Drop support for Windows 9x and Windows NT.
+    Windows 2000 is now required.
   * Replace BeOS support by Haiku support.
   * dvdcss_error() now returns "const char *" instad of "char *".
   * Drop support for MSVC versions before 2010.
diff --git a/configure.ac b/configure.ac
index f222457..ee9f752 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,14 +106,10 @@ case x"${host_os}" in
     ;;
   x*cygwin*)
     CFLAGS="${CFLAGS} -mwin32"
-    AC_DEFINE([_WIN32_IE], 0x0500, [Define to '0x0500' for IE 5.0 (and shell) APIs.])
     ;;
   xos2*)
     LDFLAGS="-Zbin-files"
     ;;
-  x*msvc* | x*mingw* | *wince* | *mingwce*)
-    AC_DEFINE([_WIN32_IE], 0x0500, [Define to '0x0500' for IE 5.0 (and shell) APIs.])
-    ;;
   x*)
     ;;
 esac
diff --git a/libdvdcss.spec.in b/libdvdcss.spec.in
index 7734df0..0558661 100644
--- a/libdvdcss.spec.in
+++ b/libdvdcss.spec.in
@@ -32,8 +32,7 @@ Conflicts:      libdvdcss0.0.1, libdvdcss0.0.2
 libdvdcss is a simple library designed for accessing DVDs like a block device
 without having to bother about the decryption. The important features are:
  * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
-   OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows NT 4.0 SP4 (with
-   IE 5.0) or later.
+   OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later.
  * Adaptability: Unlike most similar projects, libdvdcss does not require the
    region of your drive to be set and will try its best to read from the disc
    even in the case of a region mismatch.
@@ -49,8 +48,7 @@ Provides:       %name = %version-%release
 libdvdcss is a simple library designed for accessing DVDs like a block device
 without having to bother about the decryption. The important features are:
  * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
-   OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows NT 4.0 SP4 (with
-   IE 5.0) or later.
+   OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later.
  * Adaptability: Unlike most similar projects, libdvdcss does not require the
    region of your drive to be set and will try its best to read from the disc
    even in the case of a region mismatch.
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 4a58675..4bc6821 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -31,7 +31,7 @@
  * are:
  * \li portability: Currently supported platforms are GNU/Linux, FreeBSD,
  *     NetBSD, OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows
- *     NT 4.0 SP4 (with IE 5.0) or later.
+ *     2000 or later.
  * \li adaptability: Unlike most similar projects, libdvdcss does not require
  *     the region of your drive to be set and will try its best to read from
  *     the disc even in the case of a region mismatch.
@@ -116,7 +116,7 @@
 #   include <unistd.h>
 #endif
 
-#if defined(_WIN32_IE) && _WIN32_IE >= 0x500
+#ifdef WIN32
 #   include <shlobj.h>
 #endif
 
@@ -200,7 +200,7 @@ static int set_cache_directory( dvdcss_t dvdcss )
 
     if( psz_cache == NULL || psz_cache[0] == '\0' )
     {
-#if defined(_WIN32_IE) && _WIN32_IE >= 0x500
+#ifdef WIN32
         char psz_home[PATH_MAX];
 
         /* Cache our keys in
@@ -255,7 +255,7 @@ static int set_cache_directory( dvdcss_t dvdcss )
             dvdcss->psz_cachefile[PATH_MAX - 1] = '\0';
             psz_cache = dvdcss->psz_cachefile;
         }
-#endif /* ! defined(_WIN32_IE) && _WIN32_IE >= 0x500 */
+#endif /* ! defined( WIN32 ) */
     }
 
     /* Check that there is enough space for the cache directory path and the
-- 
2.1.0



More information about the libdvdcss-devel mailing list