From cb4d3ea643be4e7bf047d634577b6259fa305574 Mon Sep 17 00:00:00 2001 From: StalderT Date: Fri, 20 May 2016 11:38:30 +0200 Subject: [PATCH] Update modbus-data.c --- src/modbus-data.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/modbus-data.c b/src/modbus-data.c index bbcbab8..f889e2d 100644 --- a/src/modbus-data.c +++ b/src/modbus-data.c @@ -47,6 +47,7 @@ # define bswap_16 _byteswap_ushort #endif +#if !defined(__CYGWIN__) #if !defined(bswap_16) # warning "Fallback on C functions for bswap_16" static inline uint16_t bswap_16(uint16_t x) @@ -54,6 +55,7 @@ static inline uint16_t bswap_16(uint16_t x) return (x >> 8) | (x << 8); } #endif +#endif #if !defined(bswap_32) # warning "Fallback on C functions for bswap_32" -- libgit2 0.21.4