summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 7c9741a..8da0123 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -248,7 +248,7 @@ TclpGetPid(Tcl_Pid pid)
return (int) (size_t) pid;
}
-#if (TCL_UTF_MAX <= 4) && !defined(TCL_NO_DEPRECATED)
+#if !defined(TCL_NO_DEPRECATED) && TCL_MAJOR_VERSION < 9
#undef Tcl_WinUtfToTChar
char *
Tcl_WinUtfToTChar(
@@ -480,7 +480,7 @@ tellOld(
}
#endif /* !TCL_NO_DEPRECATED */
-#if (TCL_UTF_MAX > 4) || defined(TCL_NO_DEPRECATED)
+#if defined(TCL_NO_DEPRECATED) || TCL_MAJOR_VERSION > 8
#define Tcl_WinUtfToTChar 0
#define Tcl_WinTCharToUtf 0
#endif