diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-14 21:55:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-14 21:55:08 +0300 |
commit | 564e76e6da4544109164b1437e9ad242dfca0e13 (patch) | |
tree | 878b5c04db9f71a9bf245d3d7b2d27fff6ba2a5c | |
parent | df0c7313f33882ab29233c5cf305de3fff9146cd (diff) | |
download | plus-564e76e6da4544109164b1437e9ad242dfca0e13.tar.gz plus-564e76e6da4544109164b1437e9ad242dfca0e13.tar.bz2 plus-564e76e6da4544109164b1437e9ad242dfca0e13.tar.xz plus-564e76e6da4544109164b1437e9ad242dfca0e13.zip |
Replace bswap_16/32 to __builtin_bswap16/32.
-rw-r--r-- | src/fs/virtfs/zipreader.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fs/virtfs/zipreader.cpp b/src/fs/virtfs/zipreader.cpp index 7f3e48463..2d473bec7 100644 --- a/src/fs/virtfs/zipreader.cpp +++ b/src/fs/virtfs/zipreader.cpp @@ -36,10 +36,6 @@ PRAGMA48(GCC diagnostic ignored "-Wshadow") #include <SDL_endian.h> PRAGMA48(GCC diagnostic pop) -#if SDL_BYTEORDER == SDL_BIG_ENDIAN -#include <byteswap.h> -#endif // SDL_BYTEORDER == SDL_BIG_ENDIAN - #include "debug.h" #ifndef SDL_BIG_ENDIAN @@ -63,8 +59,8 @@ extern const char *dirSeparator; } #if SDL_BYTEORDER == SDL_BIG_ENDIAN -#define swapVal16(val) val = bswap_16(val); -#define swapVal32(val) val = bswap_32(val); +#define swapVal16(val) val = __builtin_bswap16(val); +#define swapVal32(val) val = __builtin_bswap32(val); #else // SDL_BYTEORDER == SDL_BIG_ENDIAN #define swapVal16(val) #define swapVal32(val) |