diff options
author | Simon Josefsson <simon@josefsson.org> | 2012-05-31 16:36:44 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2012-05-31 16:36:44 +0200 |
commit | c9c211a91572481e554bf2d06a2120adccfe16a3 (patch) | |
tree | 2e4efde250df40809865cfe1828e727585a36cda /gl/stdlib.in.h | |
parent | 0dd5f96848dc1b5b4357f9afade87fa05a3f79e5 (diff) | |
download | libtasn1-c9c211a91572481e554bf2d06a2120adccfe16a3.tar.gz libtasn1-c9c211a91572481e554bf2d06a2120adccfe16a3.tar.bz2 libtasn1-c9c211a91572481e554bf2d06a2120adccfe16a3.zip |
Update gnulib files.
Diffstat (limited to 'gl/stdlib.in.h')
-rw-r--r-- | gl/stdlib.in.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gl/stdlib.in.h b/gl/stdlib.in.h index e92a614..b546133 100644 --- a/gl/stdlib.in.h +++ b/gl/stdlib.in.h @@ -94,6 +94,14 @@ struct random_data # include <unistd.h> #endif +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The attribute __pure__ was added in gcc 2.96. */ +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) +#else +# define _GL_ATTRIBUTE_PURE /* empty */ +#endif + /* The definition of _Noreturn is copied here. */ /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ @@ -138,7 +146,9 @@ _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " /* Parse a signed decimal integer. Returns the value of the integer. Errors are not detected. */ # if !@HAVE_ATOLL@ -_GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_FUNCDECL_SYS (atoll, long long, (const char *string) + _GL_ATTRIBUTE_PURE + _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (atoll, long long, (const char *string)); _GL_CXXALIASWARN (atoll); |