diff options
author | DJ Delorie <dj@redhat.com> | 2013-10-29 15:14:27 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2013-10-29 15:14:27 +0000 |
commit | 0160e166ee3c6a87c9e95c2d75ee2d2a0c4c2a29 (patch) | |
tree | 13e51bc70a0dd4db7bbb2884a17f016ce0a3d69e /include/ansidecl.h | |
parent | 352d0b831e77f2bed0f7878a1f097a14abf19265 (diff) | |
download | newlib-0160e166ee3c6a87c9e95c2d75ee2d2a0c4c2a29.zip newlib-0160e166ee3c6a87c9e95c2d75ee2d2a0c4c2a29.tar.gz newlib-0160e166ee3c6a87c9e95c2d75ee2d2a0c4c2a29.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 40f4a5f..5cd03a7 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -311,6 +311,15 @@ So instead we use the macro below and test it against specific values. */ # endif /* GNUC >= 3.3 */ #endif /* ATTRIBUTE_NONNULL */ +/* Attribute `returns_nonnull' was valid as of gcc 4.9. */ +#ifndef ATTRIBUTE_RETURNS_NONNULL +# if (GCC_VERSION >= 4009) +# define ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) +# else +# define ATTRIBUTE_RETURNS_NONNULL +# endif /* GNUC >= 4.9 */ +#endif /* ATTRIBUTE_RETURNS_NONNULL */ + /* Attribute `pure' was valid as of gcc 3.0. */ #ifndef ATTRIBUTE_PURE # if (GCC_VERSION >= 3000) |