From: Pat Thoyts <patthoyts@users.sourceforge.net>
Date: Fri, 10 Oct 2008 21:57:36 +0000 (+0000)
Subject: In 8.6a3 the Tcl_FSFileAttrStringsProc had additional const added to it
X-Git-Tag: vfs-1-4~19
X-Git-Url: http://test.brassandglass.co.uk/gitweb?a=commitdiff_plain;h=832b4cfc8e206404daaa8a0c1e817273784db157;p=tclvfs

In 8.6a3 the Tcl_FSFileAttrStringsProc had additional const added to it
and a CONST86 macro was added for compatability. Make use of it.
---

diff --git a/ChangeLog b/ChangeLog
index fb19aaa..47109cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-10  Pat Thoyts  <patthoyts@users.sourceforge.net>
+
+	* generic/vfs.c: Make use of CONST86 for 8.6a3 support.
+
 2008-08-11  Pat Thoyts  <patthoyts@users.sourceforge.net>
 
 	* http2.6/http.tcl: Merged zlib crc fix from Tcl.
diff --git a/generic/vfs.c b/generic/vfs.c
index e785e56..ed189fd 100644
--- a/generic/vfs.c
+++ b/generic/vfs.c
@@ -39,6 +39,10 @@
 #define TCL_GLOB_TYPE_MOUNT		(1<<7)
 #endif
 
+#ifndef CONST86
+#define CONST86
+#endif
+
 /*
  * Only the _Init function is exported.
  */
@@ -1656,7 +1660,7 @@ VfsRemoveDirectory(
     return returnVal;
 }
 
-static CONST char**
+static CONST char * CONST86 *
 VfsFileAttrStrings(pathPtr, objPtrRef)
     Tcl_Obj* pathPtr;
     Tcl_Obj** objPtrRef;