X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b3b356352e87ae00a20f737c48e19b0c8413455a..8a67f74657d886d80a3512beb8b9b522fd3e9d13:/src/xbt/mmalloc/mm_legacy.c diff --git a/src/xbt/mmalloc/mm_legacy.c b/src/xbt/mmalloc/mm_legacy.c index aeaaeb95e0..1652eb4cbd 100644 --- a/src/xbt/mmalloc/mm_legacy.c +++ b/src/xbt/mmalloc/mm_legacy.c @@ -11,12 +11,12 @@ #include -#include "../../mc/mc_base.h" +#include "src/mc/mc_base.h" #include "mmprivate.h" -#include "xbt_modinter.h" -#include "internal_config.h" +#include "src/xbt_modinter.h" +#include "src/internal_config.h" #include -#include "../mc/mc_protocol.h" +#include "src/mc/mc_protocol.h" /* ***** Whether to use `mmalloc` of the undrlying malloc ***** */ @@ -50,7 +50,8 @@ xbt_mheap_t mmalloc_set_current_heap(xbt_mheap_t new_heap) return heap; } -#ifdef MMALLOC_WANT_OVERRIDE_LEGACY +/* Override the malloc-like functions if MC is activated at compile time */ +#if HAVE_MC /* ***** Temporary allocator * @@ -255,4 +256,4 @@ void free(void *p) mfree(mdp, p); UNLOCK(mdp); } -#endif /* WANT_MALLOC_OVERRIDE */ +#endif /* HAVE_MC */