#ifndef _SURF_MAXMIN_H
#define _SURF_MAXMIN_H
-#include <math.h>
#include "portable.h"
#include "xbt/misc.h"
#include "surf/datatypes.h"
+#include <math.h>
extern double sg_maxmin_precision;
#define MAXMIN_PRECISION sg_maxmin_precision
return (fabs(value1 - value2) < MAXMIN_PRECISION);
}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
XBT_PUBLIC(lmm_system_t) lmm_system_new(int selective_update);
XBT_PUBLIC(void) lmm_system_free(lmm_system_t sys);
void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var);
double weight_value,
double bound,
int number_of_constraints);
-void lmm_variable_free(lmm_system_t sys, lmm_variable_t var);
+XBT_PUBLIC(void) lmm_variable_free(lmm_system_t sys, lmm_variable_t var);
XBT_PUBLIC(double) lmm_variable_getvalue(lmm_variable_t var);
XBT_PUBLIC(double) lmm_variable_getbound(lmm_variable_t var);
XBT_PUBLIC(double func_vegas_fp) (lmm_variable_t var, double x);
XBT_PUBLIC(double func_vegas_fpi) (lmm_variable_t var, double x);
+#ifdef __cplusplus
+}
+#endif
#endif /* _SURF_MAXMIN_H */