Peter M. Groen
/
libmodbus
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
005bcd6fbab124fa6043b0261aa7b64afc276e9a
Authored by
Stéphane Raimbault
2017-04-26 22:31:04 +0200
1 parent
bf300474
Use builtin bswap16 of gcc 4.8 (#377)
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/modbus-data.c
src/modbus-data.c
View file @
005bcd6
...
...
@@ -43,6 +43,10 @@
43
43
# undef bswap_32
44
44
# define bswap_32 __builtin_bswap32
45
45
# endif
46
+# if GCC_VERSION >= 480
47
+# undef bswap_16
48
+# define bswap_16 __builtin_bswap16
49
+# endif
46
50
#endif
47
51
48
52
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
...
...