summaryrefslogtreecommitdiff
path: root/stdlib/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r--stdlib/strtod.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index 03a37bfb70..f32ffc6162 100644
--- a/stdlib/strtod.c
+++ b/stdlib/strtod.c
@@ -364,6 +364,11 @@ INTERNAL (STRTOF) (nptr, endptr, group)
/* Contains the last character read. */
CHAR_TYPE c;
+/* We should get wint_t from <stddef.h>, but not all GCC versions define it
+ there. So define it ourselves if it remains undefined. */
+#ifndef _WINT_T
+ typedef unsigned int wint_t;
+#endif
/* The radix character of the current locale. */
wint_t decimal;
/* The thousands character of the current locale. */