aboutsummaryrefslogtreecommitdiff
path: root/include/apos/attrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/attrs.h')
-rw-r--r--include/apos/attrs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/apos/attrs.h b/include/apos/attrs.h
index dd28b65..3825ece 100644
--- a/include/apos/attrs.h
+++ b/include/apos/attrs.h
@@ -6,6 +6,11 @@
* Attribute shorthands.
*/
+/* TODO: figure out which attributes are necessary and which are good to have */
+#if !defined(__has_attribute)
+#define __has_attribute(x) 0
+#endif
+
#define __section(section) __attribute__((__section__(section)))
#define __fmt(x, y) __attribute__((format(__printf__, x, y)))
#define __aligned(a) __attribute__((aligned(a)))