diff options
author | Ian Lance Taylor <ian@airs.com> | 2003-08-27 17:57:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2003-08-27 17:57:33 +0000 |
commit | 49c97a80e31aa4752506c71c2bca013235f13649 (patch) | |
tree | e453112e9e751376374f2c8bb4bfd1380826ba6e /bfd/bfd.c | |
parent | ec317fb15734bd40e97f49c0f4718a5e316f5a22 (diff) | |
download | gdb-49c97a80e31aa4752506c71c2bca013235f13649.zip gdb-49c97a80e31aa4752506c71c2bca013235f13649.tar.gz gdb-49c97a80e31aa4752506c71c2bca013235f13649.tar.bz2 |
* configure.in: Check for strtoull.
* bfd.c (bfd_scan_vma): Use strtoull when available.
* configure, config.in: Regenerate.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |