Fix app opt compile failure due to missing <inttypes.h>
[openssl.git] / apps / opt.c
index 439f271f537d134bed3c184249e3dfc44f5cc709..f4a4e125818e056ac616d879cb95ffb6adbcafc9 100644 (file)
@@ -377,7 +377,8 @@ int opt_long(const char *value, long *result)
 }
 
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
-    defined(INTMAX_MAX) && defined(UINTMAX_MAX)
+    defined(INTMAX_MAX) && defined(UINTMAX_MAX) && \
+    !defined(OPENSSL_NO_INTTYPES_H)
 
 /* Parse an intmax_t, put it into *result; return 0 on failure, else 1. */
 int opt_imax(const char *value, intmax_t *result)