From bdc7235246e5aa8d85b4c8e5d418cbf9d407910d Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Wed, 28 Mar 2018 10:37:04 +0100 Subject: [PATCH] Fixed compile errors when building with MinGW on Windows --- include/frnetlib/NetworkEncoding.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/frnetlib/NetworkEncoding.h b/include/frnetlib/NetworkEncoding.h index 9e55160..99d44c0 100644 --- a/include/frnetlib/NetworkEncoding.h +++ b/include/frnetlib/NetworkEncoding.h @@ -49,8 +49,8 @@ #if defined(__GNUC__) # if __BYTE_ORDER == __LITTLE_ENDIAN -# define htonll(x) __bswap_64 (x) -# define ntohll(x) __bswap_64 (x) +# define htonll(x) __builtin_bswap64 (x) +# define ntohll(x) __builtin_bswap64 (x) # else # define htonll(x) (x) # define ntohll(x) (x)