more header fixes, minor warning fix
This commit is contained in:
parent
5377715ce0
commit
c247ebdd98
6 changed files with 18 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
intmax_t strtoimax(const char *s1, char **p, int base)
|
||||
{
|
||||
const unsigned char *s = s1;
|
||||
const unsigned char *s = (const void *)s1;
|
||||
int sign = 0;
|
||||
uintmax_t x;
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ intmax_t strtoimax(const char *s1, char **p, int base)
|
|||
if (*s == '-') sign = *s++;
|
||||
else if (*s == '+') s++;
|
||||
|
||||
x = strtoumax(s, p, base);
|
||||
x = strtoumax((const void *)s, p, base);
|
||||
if (x > INTMAX_MAX) {
|
||||
if (!sign || -x != INTMAX_MIN)
|
||||
errno = ERANGE;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue