Mercurial > hg > octave-kai > gnulib-hg
changeset 3490:8a242319f3cf
(strtoimax): Guard declaration with
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
have their own, conflicting declaration of strtoimax in sys/inttypes.h.
(strtoumax): Likewise, for completeness (it wasn't necessary).
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 20 Sep 2001 14:46:55 +0000 |
parents | 9dde69687e95 |
children | 23b0d2894207 |
files | lib/xstrtol.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -1,5 +1,5 @@ /* A more useful interface to strtol. - Copyright (C) 1995, 1996, 1998-2000 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -86,11 +86,11 @@ unsigned long int strtoul (); #endif -#ifndef strtoimax +#if !HAVE_DECL_STRTOIMAX intmax_t strtoimax (); #endif -#ifndef strtoumax +#if !HAVE_DECL_STRTOUMAX uintmax_t strtoumax (); #endif