Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake: kill MMALLOC_WANT_OVERRIDE_LEGACY that dupplicated HAVE_MC
[simgrid.git] / src / xbt / mmalloc / mm_legacy.c
index e9e250f..c9644fc 100644 (file)
@@ -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 */
+#ifdef HAVE_MC 
 
 /* ***** Temporary allocator
  *
@@ -255,4 +256,4 @@ void free(void *p)
   mfree(mdp, p);
   UNLOCK(mdp);
 }
-#endif /* WANT_MALLOC_OVERRIDE */
+#endif /* HAVE_MC */