summaryrefslogtreecommitdiff
path: root/libguile/guile.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2001-11-02 00:15:53 +0000
committerMarius Vollmer <mvo@zagadka.de>2001-11-02 00:15:53 +0000
commitd7db9f60c29f9dac209b678265b4096d2a39db45 (patch)
treea27ff67325d07f7659e18294263cd87ee070f4bd /libguile/guile.c
parentec65f5dadc484dc65f513db0dd7b4e00e9c0142b (diff)
Make sure to define __SCM_IMPORT__ for shared library
build on Win32. Disable preloaded symbols on Win2 platforms.
Diffstat (limited to 'libguile/guile.c')
-rw-r--r--libguile/guile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/guile.c b/libguile/guile.c
index d25a70d07..18df2af30 100644
--- a/libguile/guile.c
+++ b/libguile/guile.c
@@ -46,6 +46,9 @@
based on the list of installed, statically linked libraries on the
system. For now, please don't put interesting code in here. */
+#ifdef __MINGW32__
+# define __SCM_IMPORT__ 1
+#endif
#include <libguile.h>
#ifdef HAVE_CONFIG_H
@@ -85,7 +88,7 @@ inner_main (void *closure SCM_UNUSED, int argc, char **argv)
int
main (int argc, char **argv)
{
-#ifdef DYNAMIC_LINKING
+#if defined (DYNAMIC_LINKING) && !defined (__MINGW32__)
LTDL_SET_PRELOADED_SYMBOLS ();
#endif
scm_boot_guile (argc, argv, inner_main, 0);