summaryrefslogtreecommitdiff
path: root/source/include/acutils.h
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2014-01-17 13:11:14 -0800
committerRobert Moore <Robert.Moore@intel.com>2014-01-17 13:11:14 -0800
commitaae576e5faefa8ba70647efa320d4747b6375f1e (patch)
tree3f966337ba2e23d312d3c5d9ba673d9656fb1422 /source/include/acutils.h
parent984b44d6e7645a82bde98af2adc8491ad1d3d9e5 (diff)
downloadacpica-aae576e5faefa8ba70647efa320d4747b6375f1e.tar.gz
Headers: Deploy #pragma pack (push) and (pop).
Use push and pop to both guarantee that the correct alignment is used, and to restore the alignment to whatever it was before the header was included. ACPICA BZ 1058.
Diffstat (limited to 'source/include/acutils.h')
-rw-r--r--source/include/acutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/acutils.h b/source/include/acutils.h
index f1c2c8bd3..1bf431940 100644
--- a/source/include/acutils.h
+++ b/source/include/acutils.h
@@ -117,6 +117,8 @@
#define _ACUTILS_H
+#pragma pack(push) /* Set default struct packing */
+
extern const UINT8 AcpiGbl_ResourceAmlSizes[];
extern const UINT8 AcpiGbl_ResourceAmlSerialBusSizes[];
@@ -1171,4 +1173,7 @@ AcpiUtMethodError (
const char *Path,
ACPI_STATUS LookupStatus);
+
+#pragma pack(pop) /* Restore original struct packing */
+
#endif /* _ACUTILS_H */