summaryrefslogtreecommitdiffstats
path: root/library/reg
diff options
context:
space:
mode:
Diffstat (limited to 'library/reg')
-rwxr-xr-xlibrary/reg/pkgIndex.tcl12
1 files changed, 11 insertions, 1 deletions
diff --git a/library/reg/pkgIndex.tcl b/library/reg/pkgIndex.tcl
index b1fe234..ab022ab 100755
--- a/library/reg/pkgIndex.tcl
+++ b/library/reg/pkgIndex.tcl
@@ -1,9 +1,19 @@
if {([info commands ::tcl::pkgconfig] eq "")
- || ([info sharedlibextension] ne ".dll")} return
+ || ([info sharedlibextension] ne ".dll")} return
if {[::tcl::pkgconfig get debug]} {
+ if {[info exists [file join $dir tclreg13g.dll]]} {
package ifneeded registry 1.3.2 \
[list load [file join $dir tclreg13g.dll] registry]
+ } else {
+ package ifneeded registry 1.3.2 \
+ [list load tclreg13g registry]
+ }
} else {
+ if {[info exists [file join $dir tclreg13.dll]]} {
package ifneeded registry 1.3.2 \
[list load [file join $dir tclreg13.dll] registry]
+ } else {
+ package ifneeded registry 1.3.2 \
+ [list load tclreg13 registry]
+ }
}