FIX:core: only wrap dl functions if plugins are enabled
authorzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 24 Oct 2008 15:58:17 +0000 (15:58 +0000)
committerzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 24 Oct 2008 15:58:17 +0000 (15:58 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1552 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/plugin.c

index 4e4aa6c..d38f0d7 100644 (file)
@@ -34,6 +34,7 @@
 #include "item.h"
 #include "debug.h"
 
+#ifdef USE_PLUGINS
 #ifndef HAVE_GMODULE
 typedef void * GModule;
 #define G_MODULE_BIND_LOCAL 1
@@ -72,6 +73,7 @@ g_module_close(GModule *handle)
 }
 
 #endif
+#endif
 
 struct plugin {
        int active;