mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
macros: add CONST (__attribute((__const__)))
This commit is contained in:
parent
c1cc75051f
commit
973a57a096
1 changed files with 6 additions and 0 deletions
6
macros.h
6
macros.h
|
|
@ -26,6 +26,12 @@
|
|||
#define UNUSED
|
||||
#endif
|
||||
|
||||
#if HAS_ATTRIBUTE(const)
|
||||
#define CONST __attribute__((__const__))
|
||||
#else
|
||||
#define CONST
|
||||
#endif
|
||||
|
||||
#if GNUC_AT_LEAST(3, 0) || HAS_ATTRIBUTE(malloc)
|
||||
#define MALLOC __attribute__((__malloc__))
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue