From: Gurucharan Shetty Date: Mon, 10 Mar 2014 16:53:58 +0000 (-0700) Subject: byte-order: htonll() and ntohll() for Windows. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~144 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ec292d7d81527b29ae948278c796db2da8f5f255;p=sliver-openvswitch.git byte-order: htonll() and ntohll() for Windows. These functions exist, so don't provide them. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/lib/byte-order.h b/lib/byte-order.h index 352f91ee6..e5ea8db5d 100644 --- a/lib/byte-order.h +++ b/lib/byte-order.h @@ -22,6 +22,7 @@ #include "openvswitch/types.h" #ifndef __CHECKER__ +#ifndef _WIN32 static inline ovs_be64 htonll(uint64_t n) { @@ -33,6 +34,7 @@ ntohll(ovs_be64 n) { return htonl(1) == 1 ? n : ((uint64_t) ntohl(n) << 32) | ntohl(n >> 32); } +#endif /* _WIN32 */ #else /* Making sparse happy with these functions also makes them unreadable, so * don't bother to show it their implementations. */