From 89e3ee4ed2f67754565d7b7411b549f965be3093 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 12 Jan 2025 17:35:02 +0000 Subject: [PATCH] In dltest/pkg*.c, prevent calling deprecate API as well --- unix/dltest/pkga.c | 3 +++ unix/dltest/pkgb.c | 3 +++ unix/dltest/pkgt.c | 3 +++ unix/dltest/pkgua.c | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/unix/dltest/pkga.c b/unix/dltest/pkga.c index f249b1d0289..f8599830cdb 100644 --- a/unix/dltest/pkga.c +++ b/unix/dltest/pkga.c @@ -11,6 +11,9 @@ */ #undef STATIC_BUILD +#ifdef TCL_NO_DEPRECATED +# define TCL_UTF_MAX 4 /* Make sure not to use the UTf-16 compatibility wrappers */ +#endif #include "tcl.h" /* diff --git a/unix/dltest/pkgb.c b/unix/dltest/pkgb.c index 3a1d3d46c5d..2b23a38d29d 100644 --- a/unix/dltest/pkgb.c +++ b/unix/dltest/pkgb.c @@ -12,6 +12,9 @@ */ #undef STATIC_BUILD +#ifdef TCL_NO_DEPRECATED +# define TCL_UTF_MAX 4 /* Make sure not to use the UTf-16 compatibility wrappers */ +#endif #include "tcl.h" #if defined(_WIN32) && defined(_MSC_VER) # define snprintf _snprintf diff --git a/unix/dltest/pkgt.c b/unix/dltest/pkgt.c index 158bd9e1791..67ab0b14a9e 100644 --- a/unix/dltest/pkgt.c +++ b/unix/dltest/pkgt.c @@ -11,6 +11,9 @@ */ #undef STATIC_BUILD +#ifdef TCL_NO_DEPRECATED +# define TCL_UTF_MAX 4 /* Make sure not to use the UTf-16 compatibility wrappers */ +#endif #include "tcl.h" static int TraceProc2 ( diff --git a/unix/dltest/pkgua.c b/unix/dltest/pkgua.c index c8a296e617f..18516b5e82d 100644 --- a/unix/dltest/pkgua.c +++ b/unix/dltest/pkgua.c @@ -11,6 +11,10 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef STATIC_BUILD +#ifdef TCL_NO_DEPRECATED +# define TCL_UTF_MAX 4 /* Make sure not to use the UTf-16 compatibility wrappers */ +#endif #include "tcl.h" /*