summaryrefslogtreecommitdiff
path: root/lib/xstrtoumax.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xstrtoumax.c')
-rw-r--r--lib/xstrtoumax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xstrtoumax.c b/lib/xstrtoumax.c
index 59d6ecf5c..a8858bf6d 100644
--- a/lib/xstrtoumax.c
+++ b/lib/xstrtoumax.c
@@ -30,4 +30,8 @@
#define __strtol strtoumax
#define __strtol_t uintmax_t
#define __xstrtol xstrtoumax
+#ifdef UINTMAX_MAX
+# define STRTOL_T_MINIMUM 0
+# define STRTOL_T_MAXIMUM UINTMAX_MAX
+#endif
#include "xstrtol.c"