diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-25 17:33:42 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-26 12:18:13 -0700 |
commit | 6950d658b76d6144c837b1a832eb062253e15ed7 (patch) | |
tree | 6b4714f3039b8cd9830c56129016a0a6c04b303f /lib | |
parent | 7d06b32684363a39fae65c616b84bc7589768106 (diff) | |
download | gnulib-6950d658b76d6144c837b1a832eb062253e15ed7.tar.gz |
strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
This supports apps that need pointers to strtoimax and strtoumax,
and ports to HP-UX 11.00 64.bit, which has macros that expand to
nonexistent functions. See
<http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
et seq.
* lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
* m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
a macro.
* m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inttypes.in.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/inttypes.in.h b/lib/inttypes.in.h index 6a8f46dddc..7abf39403f 100644 --- a/lib/inttypes.in.h +++ b/lib/inttypes.in.h @@ -1076,6 +1076,7 @@ _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - " #if @GNULIB_STRTOIMAX@ # if !@HAVE_DECL_STRTOIMAX@ +# undef strtoimax extern intmax_t strtoimax (const char *, char **, int) _GL_ARG_NONNULL ((1)); # endif #elif defined GNULIB_POSIXCHECK @@ -1088,6 +1089,7 @@ _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - " #if @GNULIB_STRTOUMAX@ # if !@HAVE_DECL_STRTOUMAX@ +# undef strtoumax extern uintmax_t strtoumax (const char *, char **, int) _GL_ARG_NONNULL ((1)); # endif #elif defined GNULIB_POSIXCHECK |