Skip to content

Commit

Permalink
In dltest/pkg*.c, prevent calling deprecate API as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Jan 12, 2025
1 parent 2fd4839 commit 89e3ee4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unix/dltest/pkga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/*
Expand Down
3 changes: 3 additions & 0 deletions unix/dltest/pkgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions unix/dltest/pkgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 4 additions & 0 deletions unix/dltest/pkgua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/*
Expand Down

0 comments on commit 89e3ee4

Please sign in to comment.