[libdvdcss-devel] win32: Remove unnecessary PATH_MAX definition

Diego Biurrun git at videolan.org
Tue Nov 4 10:59:09 CET 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Nov  3 10:26:27 2014 +0100| [dd7d9ded5c500dd219272dfb42ec9bdc3e8b44e5] | committer: Diego Biurrun

win32: Remove unnecessary PATH_MAX definition

PATH_MAX is present in all supported Windows toolchains nowadays.

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

 src/common.h    |    4 ----
 src/libdvdcss.c |    2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/common.h b/src/common.h
index 99cb047..259477b 100644
--- 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
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 826e599..5e2230d 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -233,7 +233,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( const char *psz_target )
     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\ */



More information about the libdvdcss-devel mailing list