Add compiler Attributes header file

This commit is contained in:
Eryn Wells 2016-03-19 04:05:23 -04:00
parent 3afb47e573
commit fad5a48e5b

17
src/Attributes.hh Normal file
View file

@ -0,0 +1,17 @@
/* Attributes.hh
* vim: set tw=80:
* Eryn Wells <eryn@erynwells.me>
*/
/**
* 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__ */