This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 9bb7d49 Add le32toh and htole32 for macOS (#6807) 9bb7d49 is described below commit 9bb7d499463864a2b225b83f20d51d43978d8d59 Author: Masakazu Kitajo <mas...@apache.org> AuthorDate: Thu May 28 03:14:24 2020 +0900 Add le32toh and htole32 for macOS (#6807) (cherry picked from commit 44091f00e80a620d8763e09d8dfc6031aa79748a) --- include/tscore/ink_endian.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/tscore/ink_endian.h b/include/tscore/ink_endian.h index 866518b..54823bf 100644 --- a/include/tscore/ink_endian.h +++ b/include/tscore/ink_endian.h @@ -58,4 +58,14 @@ htobe32(uint32_t x) { return OSSwapHostToBigInt32(x); } +inline uint32_t +le32toh(uint32_t x) +{ + return OSSwapLittleToHostInt32(x); +} +inline uint32_t +htole32(uint32_t x) +{ + return OSSwapHostToLittleInt32(x); +} #endif