summaryrefslogtreecommitdiffstats
path: root/unix/dltest/pkge.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/dltest/pkge.c')
-rw-r--r--unix/dltest/pkge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/dltest/pkge.c b/unix/dltest/pkge.c
index f46ca74..abd2359 100644
--- a/unix/dltest/pkge.c
+++ b/unix/dltest/pkge.c
@@ -11,8 +11,8 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#undef STATIC_BUILD
#include "tcl.h"
+
/*
*----------------------------------------------------------------------
@@ -31,15 +31,15 @@
*----------------------------------------------------------------------
*/
-DLLEXPORT int
+int
Pkge_Init(
Tcl_Interp *interp) /* Interpreter in which the package is to be
* made available. */
{
- static const char script[] = "if 44 {open non_existent}";
+ static char script[] = "if 44 {open non_existent}";
- if (Tcl_InitStubs(interp, "8.5-", 0) == NULL) {
+ if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) {
return TCL_ERROR;
}
- return Tcl_EvalEx(interp, script, -1, 0);
+ return Tcl_Eval(interp, script);
}