diff --git a/include/tins/hw_address.h b/include/tins/hw_address.h index c0a24f7..1562f29 100644 --- a/include/tins/hw_address.h +++ b/include/tins/hw_address.h @@ -35,6 +35,7 @@ #include #include #include "cxxstd.h" +#include "macros.h" #if TINS_IS_CXX11 // std::hash #include @@ -47,15 +48,16 @@ namespace Internals { /** * \cond */ -std::string hw_address_to_string(const uint8_t* ptr, size_t count); +TINS_API std::string hw_address_to_string(const uint8_t* ptr, size_t count); -void string_to_hw_address(const std::string& hw_addr, uint8_t* output, size_t output_size); +TINS_API void string_to_hw_address(const std::string& hw_addr, uint8_t* output, + size_t output_size); -bool hw_address_equal_compare(const uint8_t* start1, const uint8_t* end1, - const uint8_t* start2); +TINS_API bool hw_address_equal_compare(const uint8_t* start1, const uint8_t* end1, + const uint8_t* start2); -bool hw_address_lt_compare(const uint8_t* start1, const uint8_t* end1, - const uint8_t* start2, const uint8_t* end2); +TINS_API bool hw_address_lt_compare(const uint8_t* start1, const uint8_t* end1, + const uint8_t* start2, const uint8_t* end2); /** * \endcond diff --git a/include/tins/ip_address.h b/include/tins/ip_address.h index 6e5f9c5..e16387c 100644 --- a/include/tins/ip_address.h +++ b/include/tins/ip_address.h @@ -204,7 +204,7 @@ private: namespace std { template<> -struct hash { +TINS_API struct hash { size_t operator()(const Tins::IPv4Address& addr) const; }; diff --git a/include/tins/ipv6_address.h b/include/tins/ipv6_address.h index 6013635..454b9f7 100644 --- a/include/tins/ipv6_address.h +++ b/include/tins/ipv6_address.h @@ -203,7 +203,7 @@ public: * \param addr The parameter to be written. * \return std::ostream& pointing to the os parameter. */ - friend std::ostream& operator<<(std::ostream& os, const IPv6Address& addr); + TINS_API friend std::ostream& operator<<(std::ostream& os, const IPv6Address& addr); /** * Applies a mask to an address @@ -222,7 +222,7 @@ private: namespace std { template<> -struct hash { +TINS_API struct hash { size_t operator()(const Tins::IPv6Address& addr) const; };