Make opt_imax visible in all apps

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Viktor Dukhovni 2016-01-29 17:23:03 -05:00
parent 826e9e5446
commit ea5e0c1caf
2 changed files with 9 additions and 6 deletions

View File

@ -138,6 +138,15 @@
# define openssl_fdset(a,b) FD_SET(a, b)
# endif
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
defined(INTMAX_MAX) && defined(UINTMAX_MAX)
int opt_imax(const char *value, intmax_t *result);
int opt_umax(const char *value, uintmax_t *result);
# else
# define opt_imax opt_long
# define opt_umax opt_ulong
# endif
int app_RAND_load_file(const char *file, int dont_warn);
int app_RAND_write_file(const char *file);
/*

View File

@ -75,12 +75,6 @@ static const OPTIONS *unknown;
static const OPTIONS *opts;
static char prog[40];
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L || \
!defined(INTMAX_MAX) && !defined(UINTMAX_MAX)
#define opt_imax opt_long
#define opt_umax opt_ulong
#endif
/*
* Return the simple name of the program; removing various platform gunk.
*/