From fad5a48e5b7a002563d5d1503bfff5087bb65ee6 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 19 Mar 2016 04:05:23 -0400 Subject: [PATCH] Add compiler Attributes header file --- src/Attributes.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Attributes.hh diff --git a/src/Attributes.hh b/src/Attributes.hh new file mode 100644 index 0000000..b6fc423 --- /dev/null +++ b/src/Attributes.hh @@ -0,0 +1,17 @@ +/* Attributes.hh + * vim: set tw=80: + * Eryn Wells + */ +/** + * Defines for common compiler attributes. + * + * See https://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html for GCC + * attributes. + */ + +#ifndef __ATTRIBUTES_HH__ +#define __ATTRIBUTES_HH__ + +#define PACKED __attribute__((packed)) + +#endif /* __ATTRIBUTES_HH__ */