Tcl patches. Use [info sharedlibextension] to get file extension rather than hard-coding it]

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-11-11 21:20:00 +00:00
commit f50eac41ce
25 changed files with 39 additions and 116 deletions

View file

@ -1,12 +1,6 @@
if { [ string match $tcl_platform(platform) "windows" ] == 1 } {
if [ catch { load ./overload_simple.dll overload_simple} err_msg ] {
puts stderr "Could not load dll:\n$err_msg"
}
} else {
if [ catch { load ./overload_simple.so overload_simple} err_msg ] {
puts stderr "Could not load shared object:\n$err_msg"
}
if [ catch { load ./overload_simple[info sharedlibextension] overload_simple} err_msg ] {
puts stderr "Could not load shared object:\n$err_msg"
}
set f [new_Foo]