From d94a1a706589414f705bb459ec983a722c060236 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Wed, 13 Jan 2016 15:42:06 -0500 Subject: For stro[ui]max require both C99 and UINTMAX_MAX/INTMAX_MAX Reviewed-by: Richard Levitte --- apps/apps.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/apps.h') diff --git a/apps/apps.h b/apps/apps.h index e242414c11..e549e3ff94 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -385,7 +385,8 @@ int opt_format(const char *s, unsigned long flags, int *result); int opt_int(const char *arg, int *result); int opt_ulong(const char *arg, unsigned long *result); int opt_long(const char *arg, long *result); -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \ + defined(INTMAX_MAX) && defined(UINTMAX_MAX) int opt_imax(const char *arg, intmax_t *result); int opt_umax(const char *arg, uintmax_t *result); #endif -- cgit v1.2.3