summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-06-04 21:16:03 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-06-06 02:48:43 -0400
commit4fb5a791b08f4817cca93564d435e6624b4edb74 (patch)
treedf898eca5705a6c635647041e473b2fe509964c8 /src
parent32a8f0b3b51a7b7f7a274c9f7bad3ab01539a08a (diff)
downloadlighttpd-git-4fb5a791b08f4817cca93564d435e6624b4edb74.tar.gz
[core] __attribute_pure__
Diffstat (limited to 'src')
-rw-r--r--src/first.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/first.h b/src/first.h
index caa19c14..5dc1ad03 100644
--- a/src/first.h
+++ b/src/first.h
@@ -129,5 +129,14 @@
#endif
#endif
+#ifndef __attribute_pure__
+#if __has_attribute(pure) \
+ || __GNUC_PREREQ(2,96)
+#define __attribute_pure__(x) __attribute__((__pure__ x))
+#else
+#define __attribute_pure__(x)
+#endif
+#endif
+
#endif