Fix htonll/ntohll redefinition (#1899)

Co-authored-by: antores <antores@users.noreply.github.com>
This commit is contained in:
antores 2024-01-09 04:47:07 +03:00 committed by GitHub
parent 34d32a1ef0
commit 5ecbd1f184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
{