Skip to content

Commit

Permalink
Remove CYGWIN condition to provide bswap16 fallback (stephane#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Jun 21, 2017
1 parent 0be1e6f commit 314a871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modbus-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# define bswap_16 _byteswap_ushort
#endif

#if !defined(__CYGWIN__) && !defined(bswap_16)
#if !defined(bswap_16)
# warning "Fallback on C functions for bswap_16"
static inline uint16_t bswap_16(uint16_t x)
{
Expand Down

0 comments on commit 314a871

Please sign in to comment.