summaryrefslogtreecommitdiff
path: root/lib/strtoimax.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-01-20 12:48:14 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-01-20 12:48:14 -0800
commitcec62009bb94b74bb46dd911a22dc1ec97097970 (patch)
tree7e8e3569612303588ff164fa070e8210c7c00ec4 /lib/strtoimax.c
parent2d3c36db70ea118d3168a43e92b750c8999d60a6 (diff)
downloademacs-cec62009bb94b74bb46dd911a22dc1ec97097970.tar.gz
Merge from gnulib.
This incorporates: 2014-01-20 stdalign: port to HP-UX compilers 2014-01-16 strtoimax: port to platforms lacking 'long long' 2014-01-16 update from texinfo * doc/misc/texinfo.tex, lib/stdalign.in.h, lib/strtoimax.c: Update from gnulib.
Diffstat (limited to 'lib/strtoimax.c')
-rw-r--r--lib/strtoimax.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index 219ebaf523d..2c33d5857a9 100644
--- a/lib/strtoimax.c
+++ b/lib/strtoimax.c
@@ -28,20 +28,24 @@
#include "verify.h"
#ifdef UNSIGNED
-# ifndef HAVE_DECL_STRTOULL
+# if HAVE_UNSIGNED_LONG_LONG_INT
+# ifndef HAVE_DECL_STRTOULL
"this configure-time declaration test was not run"
-# endif
-# if !HAVE_DECL_STRTOULL && HAVE_UNSIGNED_LONG_LONG_INT
+# endif
+# if !HAVE_DECL_STRTOULL
unsigned long long int strtoull (char const *, char **, int);
+# endif
# endif
#else
-# ifndef HAVE_DECL_STRTOLL
+# if HAVE_LONG_LONG_INT
+# ifndef HAVE_DECL_STRTOLL
"this configure-time declaration test was not run"
-# endif
-# if !HAVE_DECL_STRTOLL && HAVE_LONG_LONG_INT
+# endif
+# if !HAVE_DECL_STRTOLL
long long int strtoll (char const *, char **, int);
+# endif
# endif
#endif