X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6fe5c128d910d56f037df8596ec37b37c60cc9b1..a6b30c2f53f0eb061dbb06fa8b894991291a6f88:/src/xbt/xbt_main.c diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 16d5d75033..47bef26598 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -79,7 +79,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { #endif static void xbt_preinit(void) { - mmalloc_preinit(); + #ifdef HAVE_MMAP + mmalloc_preinit(); + #endif xbt_log_preinit(); /* Connect our log channels: that must be done manually under windows */ @@ -123,7 +125,9 @@ static void xbt_postexit(void) { xbt_log_postexit(); free(xbt_binary_name); +#ifdef HAVE_MMAP mmalloc_postexit(); +#endif } /** @brief Initialize the xbt mechanisms. */