From: Daniel Stenberg Date: Mon, 12 Feb 2018 13:18:30 +0000 (+0100) Subject: sha256: avoid redefine X-Git-Tag: curl-7_59_0~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f6051f4ed2195a24adbc29036ee5ee0ef00b1e9;p=curl sha256: avoid redefine --- diff --git a/lib/sha256.c b/lib/sha256.c index 776bd2846..c2acb5265 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -27,23 +27,19 @@ #include "warnless.h" #include "curl_sha256.h" -#define USE_OPENSSL_SHA256 0 - #if defined(USE_OPENSSL) #include #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) -#define USE_OPENSSL_SHA256 1 +#define USE_OPENSSL_SHA256 #endif #endif -#if USE_OPENSSL_SHA256 - +#ifdef USE_OPENSSL_SHA256 /* When OpenSSL is available we use the SHA256-function from OpenSSL */ #include - #else /* When no other crypto library is available we use this code segment */