From 49c97a80e31aa4752506c71c2bca013235f13649 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 27 Aug 2003 17:57:33 +0000 Subject: * configure.in: Check for strtoull. * bfd.c (bfd_scan_vma): Use strtoull when available. * configure, config.in: Regenerate. --- bfd/bfd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bfd/bfd.c') diff --git a/bfd/bfd.c b/bfd/bfd.c index 472d0ed..2957747 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -920,6 +920,11 @@ bfd_scan_vma (const char *string, const char **end, int base) if (sizeof (bfd_vma) <= sizeof (unsigned long)) return strtoul (string, (char **) end, base); +#ifdef HAVE_STRTOULL + if (sizeof (bfd_vma) <= sizeof (unsigned long long)) + return strtoull (string, (char **) end, base); +#endif + if (base == 0) { if (string[0] == '0') -- cgit v1.1