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

Commit b6595064 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

Fix the MacOS build of incremental*

Test: local build, no feature code changes

Change-Id: Ic0072b06f6bfd6b12f26c4056bd3192cd3fdd778
parent 20d9d6a6
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include "incremental.h"

#include <android-base/endian.h>
#include <android-base/file.h>
#include <android-base/stringprintf.h>
#include <openssl/base64.h>
@@ -26,12 +27,6 @@
#include "commandline.h"
#include "sysdeps.h"

#ifndef _WIN32
#include <endian.h>
#else
#define be32toh(x) _byteswap_ulong(x)
#endif

using namespace std::literals;

namespace incremental {
+1 −11
Original line number Diff line number Diff line
@@ -25,17 +25,7 @@
#include "adb_utils.h"
#include "sysdeps.h"

#ifndef _WIN32
#include <endian.h>
#else
#define be64toh(x) _byteswap_uint64(x)
#define be32toh(x) _byteswap_ulong(x)
#define be16toh(x) _byteswap_ushort(x)
#define htobe64(x) _byteswap_uint64(x)
#define htobe32(x) _byteswap_ulong(x)
#define htobe16(x) _byteswap_ushort(x)
#endif

#include <android-base/endian.h>
#include <android-base/strings.h>
#include <lz4.h>
#include <stdio.h>