diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-20 14:46:55 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-20 14:46:55 +0000 |
commit | 94e77b0612c2945656c12ef2a6a26d826e7b2ed0 (patch) | |
tree | d060c17d7bd798200f28befb2e8259a757da9334 /lib/xstrtol.c | |
parent | 01b486f6af1aa2a0682ad11de9aba8267910a0b1 (diff) | |
download | gnulib-94e77b0612c2945656c12ef2a6a26d826e7b2ed0.tar.gz |
(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).
Diffstat (limited to 'lib/xstrtol.c')
-rw-r--r-- | lib/xstrtol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c index b677ef9ffa..d7ca6cf5be 100644 --- 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 @@ long int strtol (); 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 |