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

Commit 9fdd87de authored by Bowgo Tsai's avatar Bowgo Tsai Committed by android-build-merger
Browse files

Merge "<android-base/endian.h>: fix interoperability issue" am: ea378530 am: 1bb929be

am: dba4cbc6

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