shithub: libdvdcss

Download patch

ref: 42ac89492c9de73f66b70643e0a1045ad7091f9a
parent: 2a6cd147d7347e509d628c1b9fe5763a97110920
author: Jean-Baptiste Kempf <jb@videolan.org>
date: Thu Feb 14 08:05:33 EST 2013

Win32: define and use _WIN32_IE for shell api

This effectively drops support for Windows 95

--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,10 @@
     ;;
   x*msvc*)
     SYS_MSVC=1
+    AC_DEFINE([_WIN32_IE], 0x0401, [Define to '0x0401' for IE 4.01 (and shell) APIs.])
+    ;;
+  x*mingw* | *wince* | *mingwce*)
+    AC_DEFINE([_WIN32_IE], 0x0401, [Define to '0x0401' for IE 4.01 (and shell) APIs.])
     ;;
   x*)
     ;;
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -239,7 +239,7 @@
      */
     if( psz_cache == NULL || psz_cache[0] == '\0' )
     {
-#if defined(WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32_IE) && _WIN32_IE >= 0x401
         typedef HRESULT( WINAPI *SHGETFOLDERPATH )
                        ( HWND, int, HANDLE, DWORD, LPTSTR );