Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix declaration
authorAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 3 Aug 2018 19:09:13 +0000 (21:09 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 3 Aug 2018 19:09:13 +0000 (21:09 +0200)
src/smpi/plugins/ampi/ampi.cpp

index bf579e4..6f400b8 100644 (file)
@@ -10,8 +10,8 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(plugin_pampi, smpi, "Logging specific to the AMP
 
 static std::vector<size_t> memory_size(500, 0); // FIXME cheinrich This needs to be dynamic
 static std::map</*address*/ void*, size_t> alloc_table; // Keep track of all allocations
 
 static std::vector<size_t> memory_size(500, 0); // FIXME cheinrich This needs to be dynamic
 static std::map</*address*/ void*, size_t> 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
 extern "C" void* _sampi_malloc(size_t size)
 {
   void* result = malloc (size); // We need the space here to prevent recursive substitution