2008/6/20 Bram Moolenaar <[EMAIL PROTECTED]>:
>
>
> Patch 7.1.324
> Problem:    File name path length on Unix is limited to 1024.
> Solution:   Use PATH_MAX when it's more than 1000.
> Files:      src/os_unix.h

This patch adds an annoying warning message about MAXPATHL being
redefined when compiling on Mac OS X.  The trivial fix is to not
define MAXPATHL in os_mac.h if it has already been defined.  I've
added a diff below just for completeness (this is from Git so I'm not
sure how well it will work).

I know that Ben Schmidt already reported this problem a couple of days
ago so just ignore this if the fix is already in the pipeline.

I'd be grateful if this could be merged sooner rather than later.

Thanks,
Björn


diff --git a/src/os_mac.h b/src/os_mac.h
index 6effe10..43212d6 100644
--- a/src/os_mac.h
+++ b/src/os_mac.h
@@ -218,10 +218,14 @@
 #define CMDBUFFSIZE 1024       /* size of the command processing buffer */

 #if defined(MACOS_X_UNIX)
-# define MAXPATHL      1024
+# ifndef MAXPATHL
+#  define MAXPATHL     1024
+# endif
 # define BASENAMELEN   (MAXNAMLEN - 5) /* length of base of filename */
 #else
-# define MAXPATHL      256             /* Limited by the Pascal Strings */
+# ifndef MAXPATHL
+#  define MAXPATHL     256             /* Limited by the Pascal Strings */
+# endif
 # define BASENAMELEN   (32-5-1)        /* length of base of filename */
 #endif

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui