summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-07 10:31:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-07 10:31:49 (GMT)
commit3a03f53f1db809175b0e67ca7881a4f3bee63e7b (patch)
treefbbbb50c014e6f66baee5024817dffd9c2007f4d /unix
parentce1a1c9f1387df9db70689527f74c37b4c3cf7c0 (diff)
parenta01643e73b5c590d77038e45206e8ee124a75dec (diff)
downloadtcl-3a03f53f1db809175b0e67ca7881a4f3bee63e7b.zip
tcl-3a03f53f1db809175b0e67ca7881a4f3bee63e7b.tar.gz
tcl-3a03f53f1db809175b0e67ca7881a4f3bee63e7b.tar.bz2
Merge 9.0
Diffstat (limited to 'unix')
-rw-r--r--unix/tclAppInit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c
index 5d41087..f3caae7 100644
--- a/unix/tclAppInit.c
+++ b/unix/tclAppInit.c
@@ -15,6 +15,10 @@
#undef BUILD_tcl
#undef STATIC_BUILD
#include "tcl.h"
+#if TCL_MAJOR_VERSION < 9 && TCL_MINOR_VERSION < 7
+# define Tcl_LibraryInitProc Tcl_PackageInitProc
+# define Tcl_StaticLibrary Tcl_StaticPackage
+#endif
#ifdef TCL_TEST
extern Tcl_LibraryInitProc Tcltest_Init;
@@ -79,7 +83,8 @@ main(
#ifdef TCL_LOCAL_MAIN_HOOK
TCL_LOCAL_MAIN_HOOK(&argc, &argv);
-#else
+#elif !defined(_WIN32) || defined(UNICODE)
+ /* This doesn't work on Windows without UNICODE */
TclZipfs_AppHook(&argc, &argv);
#endif