From e7d2818d1eed26aae44cb8a975fc647212bf0923 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 8 Jan 2016 11:40:06 +0100 Subject: [PATCH] Unbreak the open-source build for ARM due to missing ATTRIBUTE_PACKED declaration. --- snappy-stubs-internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h index 9b2c11f..e51b731 100644 --- a/snappy-stubs-internal.h +++ b/snappy-stubs-internal.h @@ -140,6 +140,12 @@ static const int64 kint64max = static_cast(0x7FFFFFFFFFFFFFFFLL); !defined(__ARM_ARCH_6ZK__) && \ !defined(__ARM_ARCH_6T2__) +#if __GNUC__ +#define ATTRIBUTE_PACKED __attribute__((__packed__)) +#else +#define ATTRIBUTE_PACKED +#endif + namespace base { namespace internal {