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

Commit dba4cbc6 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

Change-Id: I2c11ebe1f010383f22cdecf50589bb28c21b793c
parents 757b12a0 1bb929be
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)