Commit 7a6078b6bcd952a53311bd14610782f754f194ef
1 parent
161d306f
Remove CYGWIN condition to provide bswap16 fallback (#383)
Showing
1 changed file
with
1 additions
and
1 deletions
src/modbus-data.c
| @@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
| 54 | # define bswap_16 _byteswap_ushort | 54 | # define bswap_16 _byteswap_ushort |
| 55 | #endif | 55 | #endif |
| 56 | 56 | ||
| 57 | -#if !defined(__CYGWIN__) && !defined(bswap_16) | 57 | +#if !defined(bswap_16) |
| 58 | # warning "Fallback on C functions for bswap_16" | 58 | # warning "Fallback on C functions for bswap_16" |
| 59 | static inline uint16_t bswap_16(uint16_t x) | 59 | static inline uint16_t bswap_16(uint16_t x) |
| 60 | { | 60 | { |