diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-10 00:11:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-10 00:11:58 +0000 |
commit | 544d8088c3dc794e227dd7384d7c4b15b6bf80d1 (patch) | |
tree | c241601c00c41edf87c65c6e0b29ff5e4612be89 /Build/source/texk/kpathsea/c-pathmx.h | |
parent | 5fd15d101add3e08ff14e00c8a38998602e87959 (diff) |
use MAX_PATH for PATH_MAX (Windows), et al.; from Javier Mugica
git-svn-id: svn://tug.org/texlive/trunk@17781 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/c-pathmx.h')
-rw-r--r-- | Build/source/texk/kpathsea/c-pathmx.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Build/source/texk/kpathsea/c-pathmx.h b/Build/source/texk/kpathsea/c-pathmx.h index fb122d0ae55..8b63023db01 100644 --- a/Build/source/texk/kpathsea/c-pathmx.h +++ b/Build/source/texk/kpathsea/c-pathmx.h @@ -1,8 +1,10 @@ /* c-pathmx.h: define PATH_MAX, the maximum length of a filename. - Since no such limit may exist, it's preferable to dynamically grow - filenames as needed. + Since no such limit may exist (pace GNU Hurd), these constants should + not actually be used; filenames should be dynamically grown as + needed. Most of Kpathsea does this now, but not all, and not all + programs using it. - Copyright 1992, 1993, 2008 Karl Berry. + Copyright 1992, 1993, 2008, 2010 Karl Berry. Copyright 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -24,7 +26,7 @@ #include <kpathsea/c-limits.h> /* Cheat and define this as a manifest constant no matter what, instead - of using pathconf. I forget why we want to do this. */ + of using pathconf. Maybe it is too big otherwise on Hurd? */ #ifndef _POSIX_PATH_MAX #define _POSIX_PATH_MAX 255 @@ -33,10 +35,11 @@ #ifndef PATH_MAX #ifdef MAXPATHLEN #define PATH_MAX MAXPATHLEN +#elif defined (MAX_PATH) +#define PATH_MAX MAX_PATH #else #define PATH_MAX _POSIX_PATH_MAX #endif #endif /* not PATH_MAX */ - #endif /* not KPATHSEA_C_PATH_MAX_H */ |