mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04: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
|
#define UNUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAS_ATTRIBUTE(const)
|
||||||
|
#define CONST __attribute__((__const__))
|
||||||
|
#else
|
||||||
|
#define CONST
|
||||||
|
#endif
|
||||||
|
|
||||||
#if GNUC_AT_LEAST(3, 0) || HAS_ATTRIBUTE(malloc)
|
#if GNUC_AT_LEAST(3, 0) || HAS_ATTRIBUTE(malloc)
|
||||||
#define MALLOC __attribute__((__malloc__))
|
#define MALLOC __attribute__((__malloc__))
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue