Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark some internal symbols as hidden on ELF in base
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 29 Sep 2015 12:59:13 +0000 (14:59 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 1 Oct 2015 09:44:55 +0000 (11:44 +0200)
src/simgrid/util.hpp

index 32ba9c4..1950707 100644 (file)
@@ -9,12 +9,14 @@
 
 #include <algorithm>
 
+#include <xbt/base.h>
+
 namespace simgrid {
 namespace util {
 
 /** Find a pointer to a value stores in a map (or nullptr) */
 template<typename C, typename K>
-inline
+inline XBT_PRIVATE
 typename C::mapped_type* find_map_ptr(C& c, K const& k)
 {
   typename C::iterator i = c.find(k);
@@ -25,7 +27,7 @@ typename C::mapped_type* find_map_ptr(C& c, K const& k)
 }
 
 template<typename C, typename K>
-inline
+inline XBT_PRIVATE
 typename C::mapped_type const* find_map_ptr(C const& c, K const& k)
 {
   typename C::const_iterator i = c.find(k);