Commit bf3004743cb5dcab6937946c7791770ed5d1f410
1 parent
1d3c6401
Revert "Add fallback to bswap_16 for gcc on Windows (closes #377)"
This reverts commit 1d3c6401f8186b54453ba64606758a90b6ec3fca. TravisCI reports: ../src/.libs/libmodbus.so: undefined reference to `__builtin_bswap16' with gcc 4.6.3
Showing
1 changed file
with
0 additions
and
2 deletions
src/modbus-data.c
| ... | ... | @@ -40,8 +40,6 @@ |
| 40 | 40 | # define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__ * 10) |
| 41 | 41 | # if GCC_VERSION >= 430 |
| 42 | 42 | // Since GCC >= 4.30, GCC provides __builtin_bswapXX() alternatives so we switch to them |
| 43 | -# undef bswap_16 | |
| 44 | -# define bswap_16 __builtin_bswap16 | |
| 45 | 43 | # undef bswap_32 |
| 46 | 44 | # define bswap_32 __builtin_bswap32 |
| 47 | 45 | # endif | ... | ... |