aboutsummaryrefslogtreecommitdiff
path: root/src/attributes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes.h')
-rw-r--r--src/attributes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/attributes.h b/src/attributes.h
index 45099bd8b8..9d5c1d44a0 100644
--- a/src/attributes.h
+++ b/src/attributes.h
@@ -19,4 +19,14 @@
# endif
#endif
+#if defined(__clang__)
+# if __has_attribute(lifetimebound)
+# define LIFETIMEBOUND [[clang::lifetimebound]]
+# else
+# define LIFETIMEBOUND
+# endif
+#else
+# define LIFETIMEBOUND
+#endif
+
#endif // BITCOIN_ATTRIBUTES_H