Skip to content

Commit

Permalink
Fixup macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzbuhl committed Nov 13, 2024
1 parent c0af0c9 commit de29178
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compat/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#define htobe64(x) OSSwapHostToBigInt64(x)
#define letoh64(x) OSSwapLittleToHostInt64(x)
#define betoh64(x) OSSwapBigToHostInt64(x)
#define be16toh betoh16
#define be32toh betoh32
#define be64toh betoh64
#endif /* __APPLE__ && !HAVE_ENDIAN_H */

#if defined(_WIN32) && !defined(HAVE_ENDIAN_H)
Expand All @@ -30,6 +33,9 @@
#define htobe32(x) ntohl((x))
#define betoh64(x) ntohll((x))
#define htobe64(x) ntohll((x))
#define be16toh betoh16
#define be32toh betoh32
#define be64toh betoh64
#endif /* _WIN32 && !HAVE_ENDIAN_H */

#ifdef __linux__
Expand Down

0 comments on commit de29178

Please sign in to comment.