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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/unix/dltest/pkge.c b/unix/dltest/pkge.c
index abd2359..b16acde 100644
--- a/unix/dltest/pkge.c
+++ b/unix/dltest/pkge.c
@@ -12,7 +12,6 @@
*/
#include "tcl.h"
-
/*
*----------------------------------------------------------------------
@@ -31,15 +30,15 @@
*----------------------------------------------------------------------
*/
-int
+DLLEXPORT int
Pkge_Init(
Tcl_Interp *interp) /* Interpreter in which the package is to be
* made available. */
{
- static char script[] = "if 44 {open non_existent}";
+ static const char script[] = "if 44 {open non_existent}";
- if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) {
+ if (Tcl_InitStubs(interp, "8.4", 0) == NULL) {
return TCL_ERROR;
}
- return Tcl_Eval(interp, script);
+ return Tcl_EvalEx(interp, script, -1, 0);
}