From 5ecbd1f1847b8c3611ccbad8e4d6586446651ff2 Mon Sep 17 00:00:00 2001 From: antores <22097557+antores@users.noreply.github.com> Date: Tue, 9 Jan 2024 04:47:07 +0300 Subject: [PATCH] Fix htonll/ntohll redefinition (#1899) Co-authored-by: antores --- orm_lib/inc/drogon/orm/SqlBinder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orm_lib/inc/drogon/orm/SqlBinder.h b/orm_lib/inc/drogon/orm/SqlBinder.h index 68624926..812339b0 100644 --- a/orm_lib/inc/drogon/orm/SqlBinder.h +++ b/orm_lib/inc/drogon/orm/SqlBinder.h @@ -71,6 +71,7 @@ constexpr T htonT(T value) noexcept #endif } +#ifndef _WIN32 inline uint64_t htonll(uint64_t value) { return htonT(value); @@ -81,6 +82,7 @@ inline uint64_t ntohll(uint64_t value) return htonll(value); } #endif +#endif namespace drogon {