Add compiler Attributes header file
This commit is contained in:
parent
3afb47e573
commit
fad5a48e5b
1 changed files with 17 additions and 0 deletions
17
src/Attributes.hh
Normal file
17
src/Attributes.hh
Normal 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__ */
|
Loading…
Add table
Add a link
Reference in a new issue