Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Same thing. But working, this time.
[simgrid.git] / src / xbt / config.c
index 647ec57..c13411c 100644 (file)
@@ -21,7 +21,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_cfg, xbt, "configuration support");
 
-xbt_cfg_t simgrid_config = NULL;
+XBT_EXPORT_NO_IMPORT(xbt_cfg_t) simgrid_config = NULL;
 static void xbt_cfg_register(xbt_cfg_t * cfg, const char *name, const char *desc, e_xbt_cfgelm_type_t type, xbt_cfg_cb_t cb_set);
 
 /* xbt_cfgelm_t: the typedef corresponding to a config variable. */
@@ -940,7 +940,7 @@ static xbt_cfg_t make_set()
   return set;
 }                               /* end_of_make_set */
 
-extern xbt_cfg_t simgrid_config;
+XBT_PUBLIC_DATA(xbt_cfg_t) simgrid_config;
 
 XBT_TEST_UNIT("memuse", test_config_memuse, "Alloc and free a config set")
 {