summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-07-26 20:00:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-07-26 20:00:23 (GMT)
commitd7019b7df70dfd4375c7952850fe26f1bec79520 (patch)
treef05473accd27a61671c8ffd507076c466183540e /generic/tclOO.c
parentba8f5e3b42ce9478f7888c65663d55f9cfd7bf4c (diff)
downloadtcl-d7019b7df70dfd4375c7952850fe26f1bec79520.zip
tcl-d7019b7df70dfd4375c7952850fe26f1bec79520.tar.gz
tcl-d7019b7df70dfd4375c7952850fe26f1bec79520.tar.bz2
Ensure that TclOO is properly found by all the various package mechanisms (by
adding a dummy ifneeded script) and not just some of them.
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index 9df3f53..8b76eeb 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -130,6 +130,7 @@ static const DeclaredClassMethod objMethods[] = {
};
static char initScript[] =
+ "package ifneeded TclOO " TCLOO_PATCHLEVEL " {# Already present, OK?};"
"namespace eval ::oo { variable version " TCLOO_VERSION " };"
"namespace eval ::oo { variable patchlevel " TCLOO_PATCHLEVEL " };";
/* "tcl_findLibrary tcloo $oo::version $oo::version" */