commit | e7d2818d1eed26aae44cb8a975fc647212bf0923 | [log] [tgz] |
---|---|---|
author | Steinar H. Gunderson <sesse@google.com> | Fri Jan 08 11:40:06 2016 +0100 |
committer | Steinar H. Gunderson <sesse@google.com> | Fri Jan 08 11:40:06 2016 +0100 |
tree | 8a74a043a863b2d87a2aa7a45753876d727c8889 | |
parent | 7525a1600d71b9f9f6b4382cd2356032309d1457 [diff] |
Unbreak the open-source build for ARM due to missing ATTRIBUTE_PACKED declaration.
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 @@ !defined(__ARM_ARCH_6ZK__) && \ !defined(__ARM_ARCH_6T2__) +#if __GNUC__ +#define ATTRIBUTE_PACKED __attribute__((__packed__)) +#else +#define ATTRIBUTE_PACKED +#endif + namespace base { namespace internal {