Merge pull request #4024 from bentley/swap

Undefine OpenBSD's system byteswap macros to pick up generic functions.
This commit is contained in:
Scott Mansell 2016-07-18 15:51:05 +12:00 committed by GitHub
commit 7139b6bae6
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ inline u32 swap24(const u8* _data)
return (_data[0] << 16) | (_data[1] << 8) | _data[2]; return (_data[0] << 16) | (_data[1] << 8) | _data[2];
} }
#ifdef ANDROID #if defined(ANDROID) || defined(__OpenBSD__)
#undef swap16 #undef swap16
#undef swap32 #undef swap32
#undef swap64 #undef swap64