From 4490d8cc5c7d73832e545238ec84d57c78edc1d1 Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 25 Feb 2009 17:46:45 +0000 Subject: [PATCH] Pass demand_loading flag into libgvc similar to builtins --- lib/gvc/gvconfig.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 3391b1dcf..c73800b0f 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -60,25 +60,6 @@ static int glob (GVC_t * gvc, char*, int, int (*errfunc)(const char *, int), glo #include "gvcint.h" #include "gvcproc.h" -/*visual studio*/ -#ifdef WIN32_DLL -#ifndef GVC_EXPORTS -__declspec(dllimport) int Demand_Loading; -#else -__declspec(dllexport) int Demand_Loading; -#endif -#endif -/*end visual studio*/ - -#ifndef WIN32_DLL -#ifdef GVDLL -__declspec(dllexport) int Demand_Loading; -#else -extern const int Demand_Loading; -#endif -#endif - - #ifdef WITH_CODEGENS extern codegen_t HPGL_CodeGen, MIF_CodeGen, MP_CodeGen, PIC_CodeGen, DIA_CodeGen, VTX_CodeGen; #endif @@ -528,7 +509,7 @@ void gvconfig(GVC_t * gvc, boolean rescan) gvc->config_found = FALSE; #ifdef ENABLE_LTDL - if (Demand_Loading) { + if (gvc->common.demand_loading) { /* see if there are any new plugins */ libdir = gvconfig_libdir(gvc); rc = stat(libdir, &libdir_st); -- 2.40.0