diff options
-rw-r--r-- | dep/zmqpp/zmqpp/inet.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dep/zmqpp/zmqpp/inet.hpp b/dep/zmqpp/zmqpp/inet.hpp index e62828dbf06..e0c3b146e37 100644 --- a/dep/zmqpp/zmqpp/inet.hpp +++ b/dep/zmqpp/zmqpp/inet.hpp @@ -76,10 +76,12 @@ inline uint64_t swap_if_needed(uint64_t const value_to_check) * \param hostlonglong unsigned 64 bit host order integer * \return unsigned 64 bit network order integer */ +#ifndef htonll inline uint64_t htonll(uint64_t const hostlonglong) { return zmqpp::swap_if_needed(hostlonglong); } +#endif /*! * 64 bit version of the ntohs/ntohl @@ -89,10 +91,12 @@ inline uint64_t htonll(uint64_t const hostlonglong) * \param networklonglong unsigned 64 bit network order integer * \return unsigned 64 bit host order integer */ +#ifndef ntohll inline uint64_t ntohll(uint64_t const networklonglong) { return zmqpp::swap_if_needed(networklonglong); } +#endif /*! * floating point version of the htons/htonl |