| 33 |
#include "config.h" |
#include "config.h" |
| 34 |
#endif |
#endif |
| 35 |
|
|
|
#ifdef HAVE_WINDOWS_H |
|
|
#define HAVE_STRTOQ 1 |
|
|
#define strtoll _strtoui64 |
|
|
#define strtoull _strtoi64 |
|
|
#endif |
|
|
|
|
| 36 |
#include <stdlib.h> |
#include <stdlib.h> |
| 37 |
#include <stdio.h> |
#include <stdio.h> |
| 38 |
#include <ctype.h> |
#include <ctype.h> |
| 764 |
long long r = strtoq(str, &end, radix); |
long long r = strtoq(str, &end, radix); |
| 765 |
#elif defined HAVE_STRTOLL |
#elif defined HAVE_STRTOLL |
| 766 |
long long r = strtoll(str, &end, radix); |
long long r = strtoll(str, &end, radix); |
| 767 |
|
#elif defined HAVE__STRTOI64 |
| 768 |
|
long long r = _strtoi64(str, &end, radix); |
| 769 |
#else |
#else |
| 770 |
#error parse_longlong_radix: cannot convert input to a long-long |
#error parse_longlong_radix: cannot convert input to a long-long |
| 771 |
#endif |
#endif |
| 793 |
unsigned long long r = strtouq(str, &end, radix); |
unsigned long long r = strtouq(str, &end, radix); |
| 794 |
#elif defined HAVE_STRTOLL |
#elif defined HAVE_STRTOLL |
| 795 |
unsigned long long r = strtoull(str, &end, radix); |
unsigned long long r = strtoull(str, &end, radix); |
| 796 |
|
#elif defined HAVE__STRTOI64 |
| 797 |
|
unsigned long long r = _strtoui64(str, &end, radix); |
| 798 |
#else |
#else |
| 799 |
#error parse_ulonglong_radix: cannot convert input to a long-long |
#error parse_ulonglong_radix: cannot convert input to a long-long |
| 800 |
#endif |
#endif |