From: Navarrop Date: Wed, 27 Apr 2011 12:17:59 +0000 (+0200) Subject: Need to include surf/surf_routing.h now. X-Git-Tag: v3_6_rc3~88 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/74de9c25ddcff88858f723ebc64d25027e71ba12?hp=2be6d8f185ebf696bba1c4d559f4af0a618f0103 Need to include surf/surf_routing.h now. Must to test COORD_HOST_LEVEL or COORD_ASR_LEVEL if we give the --cfg=coordonates:yes in argument. --- diff --git a/src/surf/surf_routing.h b/src/surf/surf_routing.h index cd96aa25d4..a0a891d562 100644 --- a/src/surf/surf_routing.h +++ b/src/surf/surf_routing.h @@ -7,6 +7,8 @@ #ifndef _SURF_SURF_ROUTING_H #define _SURF_SURF_ROUTING_H +#include "xbt/lib.h" + extern xbt_lib_t host_lib; extern int ROUTING_HOST_LEVEL; //Routing level extern int SURF_CPU_LEVEL; //Surf cpu level diff --git a/src/xbt/config.c b/src/xbt/config.c index f5fd93c3a6..71f90259e3 100644 --- a/src/xbt/config.c +++ b/src/xbt/config.c @@ -18,7 +18,12 @@ #include "xbt/peer.h" #include "xbt/config.h" /* prototypes of this module */ -#include "surf/surf.h" /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */ +#include "surf/surf_routing.h" /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */ + +xbt_lib_t host_lib; +int COORD_HOST_LEVEL; //Coordinates level +xbt_lib_t as_router_lib; +int COORD_ASR_LEVEL; //Coordinates level XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_cfg, xbt, "configuration support");