Skip to content

Commit

Permalink
Use builtin bswap16 of gcc 4.8 (stephane#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Apr 26, 2017
1 parent c1097fc commit 19c39bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modbus-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
# undef bswap_32
# define bswap_32 __builtin_bswap32
# endif
# if GCC_VERSION >= 480
# undef bswap_16
# define bswap_16 __builtin_bswap16
# endif
#endif

#if defined(_MSC_VER) && (_MSC_VER >= 1400)
Expand Down

0 comments on commit 19c39bd

Please sign in to comment.