[libdvdcss-devel] win32: Remove unnecessary PATH_MAX definition

[email protected] (Diego Biurrun)
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
libdvdcss | branch: master | Diego Biurrun <[email protected]> | 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\ */

_______________________________________________
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.