Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: make sure we include the definition of HAVE_MC
[simgrid.git] / src / include / mc / mc.h
index bdc16bd..bf7593a 100644 (file)
 #include "xbt/function_types.h"
 #include "mc/datatypes.h"
 #include "simix/datatypes.h"
+#include "gras_config.h" /* Definition of HAVE_MC */
+
+#ifdef HAVE_MC
+extern int _surf_do_model_check;
+#define MC_IS_ENABLED _surf_do_model_check
+#else
+#define MC_IS_ENABLED 0
+#endif
 
 SG_BEGIN_DECL()
 
@@ -29,11 +37,6 @@ XBT_PUBLIC(int) MC_random(int, int);
 XBT_PUBLIC(void) MC_memory_init(void);  /* Initialize the memory subsystem */
 XBT_PUBLIC(void) MC_memory_exit(void);
 
-/*
- * Boolean indicating whether we want to activate the model-checker
- */
-extern int _surf_do_model_check;
-
-
 SG_END_DECL()
+
 #endif                          /* _MC_MC_H */