X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5089a0a98b27f5eeee62321dff4f025f1648f025..d3ff5bc1abcc24a092161f238c69447a72201746:/include/smpi/sampi.h diff --git a/include/smpi/sampi.h b/include/smpi/sampi.h index b51f8ee5d0..9290d99839 100644 --- a/include/smpi/sampi.h +++ b/include/smpi/sampi.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -6,6 +6,7 @@ #ifndef SAMPI_H_ #define SAMPI_H_ +#define SMPI_NO_OVERRIDE_MALLOC #include #include @@ -14,6 +15,9 @@ type _XBT_CONCAT(AP, name) args; #ifndef HAVE_SMPI +#undef malloc +#undef calloc +#undef free // Internally disable these overrides (HAVE_SMPI is only defined when building the library) #define malloc(nbytes) _sampi_malloc(nbytes) #define calloc(n_elm, elm_size) _sampi_calloc((n_elm), (elm_size))