]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/params_conversion_test.c: fix the use of strtoumax and strtoimax on VMS
authorRichard Levitte <levitte@openssl.org>
Thu, 20 May 2021 07:42:22 +0000 (09:42 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 22 May 2021 05:23:47 +0000 (07:23 +0200)
We do this by making them aliases for strtoull and strtoll, since long
long is the current largest integer that have this sort of routine on
VMS.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15366)

test/params_conversion_test.c

index 1c3a4716a6a89c4689c6f2b72c0265f78eb78389..2fc17cc592058c8cb6fc6671c4d725df98b7e93b 100644 (file)
 #  define strcasecmp _stricmp
 # endif
 
+# ifdef OPENSSL_SYS_VMS
+#  define strtoumax strtoull
+#  define strtoimax strtoll
+# endif
+
 typedef struct {
     OSSL_PARAM *param;
     int32_t i32;