diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-25 04:08:33 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-04-02 01:16:42 -0400 |
commit | de40881a2e1a09b2037a1eeccbcba52eccb38c40 (patch) | |
tree | 8d24260b3e19b0d47ca2e82b5b81898fae33fff5 /src/first.h | |
parent | dc01487ea6211337fbe632f0c8921d2efaa457eb (diff) | |
download | lighttpd-git-de40881a2e1a09b2037a1eeccbcba52eccb38c40.tar.gz |
[core] define __attribute_nonnull__
Diffstat (limited to 'src/first.h')
-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 d3431a21..9ef1ef06 100644 --- a/src/first.h +++ b/src/first.h @@ -167,6 +167,15 @@ #endif #endif +#ifndef __attribute_nonnull__ +#if __has_attribute(nonnull) \ + || __GNUC_PREREQ(3,3) +#define __attribute_nonnull__ __attribute__((__nonnull__)) +#else +#define __attribute_nonnull__ +#endif +#endif + #ifndef __attribute_malloc__ #if __has_attribute(malloc) \ || __GNUC_PREREQ(2,96) |