For stro[ui]max require both C99 and UINTMAX_MAX/INTMAX_MAX
[openssl.git] / include / openssl / ossl_typ.h
index 87b99f278335b11e6f76cde16a5becc6b05f0a1d..faa631931a9f79a09d613101b02185536778bc06 100644 (file)
@@ -201,8 +201,8 @@ typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
 typedef struct ocsp_response_st OCSP_RESPONSE;
 typedef struct ocsp_responder_id_st OCSP_RESPID;
 
-#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
-    && !defined(OPENSSL_SYS_VMS)
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
+    defined(INTMAX_MAX) && defined(UINTMAX_MAX)
 typedef intmax_t ossl_intmax_t;
 typedef uintmax_t ossl_uintmax_t;
 #else