For stroimax need C99 inttypes.h

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Viktor Dukhovni
2016-01-13 11:16:08 -05:00
parent aa14779267
commit dbc8541b86
4 changed files with 12 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ static const OPTIONS *unknown;
static const OPTIONS *opts;
static char prog[40];
#if !defined(INTMAX_MAX) || !defined(UINTMAX_MAX)
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
#define opt_imax opt_long
#define opt_umax opt_ulong
#endif
@@ -397,7 +397,7 @@ int opt_long(const char *value, long *result)
return 1;
}
#if defined(INTMAX_MAX) && defined(UINTMAX_MAX)
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* Parse an intmax_t, put it into *result; return 0 on failure, else 1. */
int opt_imax(const char *value, intmax_t *result)