From: Augustin Degomme Date: Fri, 3 Aug 2018 19:09:13 +0000 (+0200) Subject: fix declaration X-Git-Tag: v3_21~305 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/102f713d92cbfed13a88875f4695d8d02d812d4c fix declaration --- diff --git a/src/smpi/plugins/ampi/ampi.cpp b/src/smpi/plugins/ampi/ampi.cpp index bf579e49b6..6f400b8bab 100644 --- a/src/smpi/plugins/ampi/ampi.cpp +++ b/src/smpi/plugins/ampi/ampi.cpp @@ -10,8 +10,8 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(plugin_pampi, smpi, "Logging specific to the AMP static std::vector memory_size(500, 0); // FIXME cheinrich This needs to be dynamic static std::map alloc_table; // Keep track of all allocations -extern "C" void* _sampi_malloc(size_t); -extern "C" void _sampi_free(void* ptr); +extern "C" XBT_PUBLIC void* _sampi_malloc(size_t); +extern "C" XBT_PUBLIC void _sampi_free(void* ptr); extern "C" void* _sampi_malloc(size_t size) { void* result = malloc (size); // We need the space here to prevent recursive substitution