From: Martin Quinson Date: Sat, 19 Sep 2015 21:30:49 +0000 (+0200) Subject: stop being foolish and deal with public data the regular way X-Git-Tag: v3_12~174 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/be168aff446047bcd2ac666608920a2ba9def0cd?ds=sidebyside stop being foolish and deal with public data the regular way --- diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index cea914e718..3394673717 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -12,7 +12,6 @@ #include "xbt/asserts.h" #include "surf/datatypes.h" #include -//#include /** @addtogroup SURF_lmm @@ -87,8 +86,8 @@ * to consrtaint and the communications to variables. */ -XBT_EXPORT_NO_IMPORT(double) sg_maxmin_precision; -XBT_EXPORT_NO_IMPORT(double) sg_surf_precision; +XBT_PUBLIC_DATA(double) sg_maxmin_precision; +XBT_PUBLIC_DATA(double) sg_surf_precision; static XBT_INLINE void double_update(double *variable, double value, double precision) { diff --git a/src/surf/maxmin.cpp b/src/surf/maxmin.cpp index 2ed593c3de..a060d6b7f2 100644 --- a/src/surf/maxmin.cpp +++ b/src/surf/maxmin.cpp @@ -20,8 +20,8 @@ typedef struct s_dyn_light { int size; } s_dyn_light_t, *dyn_light_t; -XBT_EXPORT_NO_IMPORT(double) sg_maxmin_precision = 0.00001; -XBT_EXPORT_NO_IMPORT(double) sg_surf_precision = 0.00001; +double sg_maxmin_precision = 0.00001; +double sg_surf_precision = 0.00001; static void *lmm_variable_mallocator_new_f(void); static void lmm_variable_mallocator_free_f(void *var);