diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-06-04 21:16:03 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2019-06-06 02:48:43 -0400 |
commit | 4fb5a791b08f4817cca93564d435e6624b4edb74 (patch) | |
tree | df898eca5705a6c635647041e473b2fe509964c8 /src | |
parent | 32a8f0b3b51a7b7f7a274c9f7bad3ab01539a08a (diff) | |
download | lighttpd-git-4fb5a791b08f4817cca93564d435e6624b4edb74.tar.gz |
[core] __attribute_pure__
Diffstat (limited to 'src')
-rw-r--r-- | src/first.h | 9 |
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 |