From be168aff446047bcd2ac666608920a2ba9def0cd Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 19 Sep 2015 23:30:49 +0200 Subject: [PATCH] stop being foolish and deal with public data the regular way --- src/include/surf/maxmin.h | 5 ++--- src/surf/maxmin.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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); -- 2.20.1