Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to avoid error with mingw: function definition is marked dllimport.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 11 Oct 2019 11:40:34 +0000 (13:40 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 11 Oct 2019 11:40:34 +0000 (13:40 +0200)
include/simgrid/s4u/Activity.hpp

index e379e4d..b846b3c 100644 (file)
@@ -105,14 +105,14 @@ private:
 
 public:
 #ifndef DOXYGEN
-  friend XBT_PUBLIC void intrusive_ptr_release(AnyActivity* a)
+  friend void intrusive_ptr_release(AnyActivity* a)
   {
     if (a->refcount_.fetch_sub(1, std::memory_order_release) == 1) {
       std::atomic_thread_fence(std::memory_order_acquire);
       delete a;
     }
   }
-  friend XBT_PUBLIC void intrusive_ptr_add_ref(AnyActivity* a) { a->refcount_.fetch_add(1, std::memory_order_relaxed); }
+  friend void intrusive_ptr_add_ref(AnyActivity* a) { a->refcount_.fetch_add(1, std::memory_order_relaxed); }
 #endif
   AnyActivity* set_name(const std::string& name)
   {