]> granicus.if.org Git - graphviz/commitdiff
Pass demand_loading flag into libgvc similar to builtins
authorellson <devnull@localhost>
Wed, 25 Feb 2009 17:46:45 +0000 (17:46 +0000)
committerellson <devnull@localhost>
Wed, 25 Feb 2009 17:46:45 +0000 (17:46 +0000)
lib/gvc/gvconfig.c

index 3391b1dcfd5e029fd2731029613a83394302bcf9..c73800b0fb504887dcc8848327865f9796da7ed5 100644 (file)
@@ -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);