view modules/strtoumax @ 37198:5bd4e95e689f

strtoimax, strtoumax: port to HP-UX 11.11 Problem reported by Daniel Richard G. in <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>. * lib/inttypes.in.h (strtoumax): Replace strtoumax if REPLACE_STRTOUMAX, thus treating it consistently with strtoimax. * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for REPLACE_STRTOUMAX. * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Replace the function if defined as a macro but not as a function. * modules/inttypes-incomplete (inttypes.h): Substitute REPLACE_STRTOUMAX. * modules/strtoumax (configure.ac): Replace strtoumax if REPLACE_STRTOUMAX.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 09 Oct 2013 08:05:24 -0700
parents dd8cc782c33d
children 796d7689f6de
line wrap: on
line source

Description:
strtoumax() function: convert string to 'uintmax_t'.

Files:
lib/strtoimax.c
lib/strtoumax.c
m4/longlong.m4
m4/strtoumax.m4

Depends-on:
inttypes-incomplete
verify          [test $ac_cv_func_strtoumax = no]
stdint          [test $ac_cv_func_strtoumax = no]
strtoull        [test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes]

configure.ac:
gl_FUNC_STRTOUMAX
if test $HAVE_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
  AC_LIBOBJ([strtoumax])
  gl_PREREQ_STRTOUMAX
fi
gl_INTTYPES_MODULE_INDICATOR([strtoumax])

Makefile.am:

Include:
<inttypes.h>

License:
LGPL

Maintainer:
Paul Eggert