From 2998749850f88d83d2ce291bc8f0a8b5e33e9599 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Thu, 16 Jul 2020 16:40:12 +0200 Subject: md(4|5): don't use deprecated macOS functions They are marked as deprecated for -mmacosx-version-min >= 10.15, which might result in warnings-as-errors. Closes https://github.com/curl/curl/pull/5695 --- lib/md5.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/md5.c') diff --git a/lib/md5.c b/lib/md5.c index 557a51e6c..d21625f6b 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -139,7 +139,9 @@ static void MD5_Final(unsigned char *digest, MD5_CTX *ctx) } #elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \ - (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)) || \ + (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1040) && \ + defined(__MAC_OS_X_VERSION_MIN_ALLOWED) && \ + (__MAC_OS_X_VERSION_MIN_ALLOWED < 101500)) || \ (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \ (__IPHONE_OS_VERSION_MAX_ALLOWED >= 20000)) -- cgit v1.2.1