Commit ea5e0c1c authored by Viktor Dukhovni's avatar Viktor Dukhovni
Browse files

Make opt_imax visible in all apps



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 826e9e54
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);
/*
+0 −6
Original line number Diff line number Diff line
@@ -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.
 */