]> git.pld-linux.org Git - packages/blt.git/commitdiff
- avoid conflicting prototypes for tcl 8.5+
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 Jul 2005 10:29:40 +0000 (10:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    blt-tcl85.patch -> 1.1

blt-tcl85.patch [new file with mode: 0644]

diff --git a/blt-tcl85.patch b/blt-tcl85.patch
new file mode 100644 (file)
index 0000000..84a7494
--- /dev/null
@@ -0,0 +1,39 @@
+--- blt2.4z/src/bltNsUtil.h.orig       2002-07-18 08:35:32.000000000 +0200
++++ blt2.4z/src/bltNsUtil.h    2005-07-24 12:07:44.825339104 +0200
+@@ -47,8 +47,10 @@
+ #endif
++#if (TCL_VERSION_NUMBER < _VERSION(8,0,0)) 
+ EXTERN Tcl_Command Tcl_FindCommand _ANSI_ARGS_((Tcl_Interp *interp,
+       char *name, Tcl_Namespace *nsPtr, int flags));
++#endif
+ #define NS_SEARCH_NONE                (0)
+ #define NS_SEARCH_CURRENT     (1<<0)
+@@ -56,14 +58,17 @@
+ #define NS_SEARCH_BOTH                (NS_SEARCH_GLOBAL | NS_SEARCH_CURRENT)
++#if (TCL_VERSION_NUMBER < _VERSION(8,5,0))
+ /*
+  * Namespace procedures not prototyped defined in Tcl.h 
+  */
+ EXTERN Tcl_Namespace *Tcl_GetCurrentNamespace _ANSI_ARGS_((Tcl_Interp *interp));
+ EXTERN Tcl_Namespace *Tcl_GetGlobalNamespace _ANSI_ARGS_((Tcl_Interp *interp));
++#endif
+ #if (TCL_MAJOR_VERSION >= 8)
++#  if (TCL_VERSION_NUMBER < _VERSION(8,5,0))
+ EXTERN Tcl_Namespace *Tcl_CreateNamespace _ANSI_ARGS_((Tcl_Interp *interp,
+       char *name, ClientData clientData, Tcl_NamespaceDeleteProc *nsDelProc));
+@@ -74,6 +79,7 @@
+ EXTERN int Tcl_Export _ANSI_ARGS_((Tcl_Interp *interp, Tcl_Namespace *nsPtr,
+       char *name, int resetFlag));
++#  endif
+ EXTERN Tcl_Var Tcl_FindNamespaceVar _ANSI_ARGS_((Tcl_Interp *interp, char *name,
+       Tcl_Namespace *contextNsPtr, int flags));
This page took 0.038324 seconds and 4 git commands to generate.