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,6 +47,7 @@
47 # define bswap_16 _byteswap_ushort 47 # define bswap_16 _byteswap_ushort
48 #endif 48 #endif
49 49
  50 +#if !defined(__CYGWIN__)
50 #if !defined(bswap_16) 51 #if !defined(bswap_16)
51 # warning "Fallback on C functions for bswap_16" 52 # warning "Fallback on C functions for bswap_16"
52 static inline uint16_t bswap_16(uint16_t x) 53 static inline uint16_t bswap_16(uint16_t x)
@@ -54,6 +55,7 @@ static inline uint16_t bswap_16(uint16_t x) @@ -54,6 +55,7 @@ static inline uint16_t bswap_16(uint16_t x)
54 return (x >> 8) | (x << 8); 55 return (x >> 8) | (x << 8);
55 } 56 }
56 #endif 57 #endif
  58 +#endif
57 59
58 #if !defined(bswap_32) 60 #if !defined(bswap_32)
59 # warning "Fallback on C functions for bswap_32" 61 # warning "Fallback on C functions for bswap_32"