Re-enable the float/double versions of hton{d,f} on Windows

This commit is contained in:
Tim Wojtulewicz 2023-01-17 16:44:35 -07:00 committed by Tim Wojtulewicz
parent 1f0860b5e2
commit 3750396aed

View file

@ -283,7 +283,6 @@ inline uint64_t htonll(uint64_t i)
#else #else
#ifndef _MSC_VER
inline double ntohd(double d) inline double ntohd(double d)
{ {
assert(sizeof(d) == 8); assert(sizeof(d) == 8);
@ -329,7 +328,6 @@ inline float htonf(float f)
{ {
return ntohf(f); return ntohf(f);
} }
#endif
#ifndef HAVE_BYTEORDER_64 #ifndef HAVE_BYTEORDER_64
inline uint64_t ntohll(uint64_t i) inline uint64_t ntohll(uint64_t i)