shithub: libdvdcss

Download patch

ref: dd7d9ded5c500dd219272dfb42ec9bdc3e8b44e5
parent: 44727dfa01db3455a5bf4146dd3120dcbdb6dadb
author: Diego Biurrun <diego@biurrun.de>
date: Mon Nov 3 05:26:27 EST 2014

win32: Remove unnecessary PATH_MAX definition

PATH_MAX is present in all supported Windows toolchains nowadays.

--- a/src/common.h
+++ b/src/common.h
@@ -44,10 +44,6 @@
 #if defined( WIN32 )
 #   include <io.h>                                             /* _lseeki64 */
 
-#   ifndef PATH_MAX
-#      define PATH_MAX MAX_PATH
-#   endif
-
 /* several type definitions */
 #   if defined( __MINGW32__ )
 #       undef lseek
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -233,7 +233,7 @@
     if( psz_cache == NULL || psz_cache[0] == '\0' )
     {
 #if defined(_WIN32_IE) && _WIN32_IE >= 0x500
-        char psz_home[MAX_PATH];
+        char psz_home[PATH_MAX];
 
         /* Cache our keys in
          * C:\Documents and Settings\$USER\Application Data\dvdcss\ */