Commit cb4d3ea643be4e7bf047d634577b6259fa305574

Authored by StalderT
Committed by Stéphane Raimbault
1 parent 8f252294

Update modbus-data.c

Making all in src
  CC       modbus.lo
  CC       modbus-data.lo
modbus-data.c:51:5: attention : #warning "Fallback on C functions for bswap_16" [-Wcpp]
 #   warning "Fallback on C functions for bswap_16"
     ^
modbus-data.c:52:24: erreur: redefinition of ‘bswap_16’
 static inline uint16_t bswap_16(uint16_t x)
Showing 1 changed file with 2 additions and 0 deletions
src/modbus-data.c
... ... @@ -47,6 +47,7 @@
47 47 # define bswap_16 _byteswap_ushort
48 48 #endif
49 49  
  50 +#if !defined(__CYGWIN__)
50 51 #if !defined(bswap_16)
51 52 # warning "Fallback on C functions for bswap_16"
52 53 static inline uint16_t bswap_16(uint16_t x)
... ... @@ -54,6 +55,7 @@ static inline uint16_t bswap_16(uint16_t x)
54 55 return (x >> 8) | (x << 8);
55 56 }
56 57 #endif
  58 +#endif
57 59  
58 60 #if !defined(bswap_32)
59 61 # warning "Fallback on C functions for bswap_32"
... ...