s/MAX_PATH/PATH_MAX/.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9431 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-01-05 10:29:17 +00:00
parent 82bcfbae02
commit f5f2628139
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-01-05 Angus Leeming <leeming@lyx.org>
* os_win32.C (external_path, internal_path): s/MAX_PATH/PATH_MAX/.
2005-01-04 Angus Leeming <leeming@lyx.org> 2005-01-04 Angus Leeming <leeming@lyx.org>
* os_win32.C (current_root): use _getdrive on Win32. * os_win32.C (current_root): use _getdrive on Win32.

View File

@ -119,7 +119,7 @@ string os::external_path(string const & p)
#if defined(__CYGWIN__) || defined(__CYGWIN32__) #if defined(__CYGWIN__) || defined(__CYGWIN32__)
// Translate from cygwin path syntax to dos path syntax // Translate from cygwin path syntax to dos path syntax
if (is_absolute_path(p)) { if (is_absolute_path(p)) {
char dp[MAX_PATH+1]; char dp[PATH_MAX+1];
cygwin_conv_to_full_win32_path(p.c_str(), dp); cygwin_conv_to_full_win32_path(p.c_str(), dp);
dos_path = !dp ? string() : dp; dos_path = !dp ? string() : dp;
} }
@ -143,7 +143,7 @@ string os::external_path(string const & p)
string os::internal_path(string const & p) string os::internal_path(string const & p)
{ {
#if defined(__CYGWIN__) || defined(__CYGWIN32__) #if defined(__CYGWIN__) || defined(__CYGWIN32__)
char posix_path[MAX_PATH+1]; char posix_path[PATH_MAX+1];
posix_path[0] = '\0'; posix_path[0] = '\0';
cygwin_conv_to_posix_path(p.c_str(), posix_path); cygwin_conv_to_posix_path(p.c_str(), posix_path);
return posix_path; return posix_path;