Fix htonll/ntohll redefinition (#1899)
Co-authored-by: antores <antores@users.noreply.github.com>
This commit is contained in:
parent
34d32a1ef0
commit
5ecbd1f184
|
@ -71,6 +71,7 @@ constexpr T htonT(T value) noexcept
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
inline uint64_t htonll(uint64_t value)
|
||||
{
|
||||
return htonT<uint64_t>(value);
|
||||
|
@ -81,6 +82,7 @@ inline uint64_t ntohll(uint64_t value)
|
|||
return htonll(value);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace drogon
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue