Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea378530 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "<android-base/endian.h>: fix interoperability issue"

parents 948e4fa3 41d8a576
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -51,8 +51,10 @@
/* macOS has some of the basics. */
#include <sys/_endian.h>
#else
/* Windows has even less. */
/* Windows has some of the basics as well. */
#include <sys/param.h>
#include <winsock2.h>
/* winsock2.h *must* be included before the following four macros. */
#define htons(x) __builtin_bswap16(x)
#define htonl(x) __builtin_bswap32(x)
#define ntohs(x) __builtin_bswap16(x)