summaryrefslogtreecommitdiff
path: root/src/inttypes
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-02 15:01:45 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-02 15:01:45 -0500
commit07458cb09bfe1336c40f1866f105650c44810f43 (patch)
tree377d60651822a823d1704ca431315c30f29d4431 /src/inttypes
parent73211ec3e7af1bc7b8123b561535dd9509fc0db1 (diff)
add <ctype.h> include for consuming leading spaces
Diffstat (limited to 'src/inttypes')
-rw-r--r--src/inttypes/strtoimax.c1
-rw-r--r--src/inttypes/strtoumax.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/inttypes/strtoimax.c b/src/inttypes/strtoimax.c
index e473c210..a8dc3fcd 100644
--- a/src/inttypes/strtoimax.c
+++ b/src/inttypes/strtoimax.c
@@ -1,5 +1,6 @@
#include "stddef.h"
#include <inttypes.h>
+#include "ctype.h"
#include "errno.h"
intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base)
diff --git a/src/inttypes/strtoumax.c b/src/inttypes/strtoumax.c
index 60aec599..12d5c18a 100644
--- a/src/inttypes/strtoumax.c
+++ b/src/inttypes/strtoumax.c
@@ -1,5 +1,6 @@
#include "stddef.h"
#include <inttypes.h>
+#include "ctype.h"
#include "errno.h"
uintmax_t strtoumax(const char *restrict nptr, char ** restrict endptr, int base)