aboutsummaryrefslogtreecommitdiff
path: root/jim-load.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-10-20 10:55:07 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-30 20:07:28 +1000
commit8016c1d53332b9ad2af8e49482f7848648995a89 (patch)
treee45d82799d638cdfcc2020e7cc05131b60049384 /jim-load.c
parentbbd43ee01fce3a2b5284154c50dfc9994c913a29 (diff)
downloadjimtcl-8016c1d53332b9ad2af8e49482f7848648995a89.zip
jimtcl-8016c1d53332b9ad2af8e49482f7848648995a89.tar.gz
jimtcl-8016c1d53332b9ad2af8e49482f7848648995a89.tar.bz2
Allow extensions to be built/installed as modules
This includes C extensions and Tcl extensions Also adds windows support (mingw32 and cygwin) Now the sqlite*, readline and win32 extensions are supported Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-load.c')
-rw-r--r--jim-load.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/jim-load.c b/jim-load.c
index 6fe3837..772ddce 100644
--- a/jim-load.c
+++ b/jim-load.c
@@ -5,9 +5,11 @@
* Dynamic libraries support (WIN32 not supported)
* ---------------------------------------------------------------------------*/
-#ifdef JIM_DYNLIB
+#if defined(HAVE_DLOPEN) || defined(HAVE_DLOPEN_COMPAT)
+#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
+#endif
int Jim_LoadLibrary(Jim_Interp *interp, const char *pathName)
{