From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web08.27908.1649676320524998375 for ; Mon, 11 Apr 2022 04:25:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=f6iSrpQp; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649676319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CcEktCNN0XMptH8QaEqShHfkLhAhYPKynjTc2XMrTGo=; b=f6iSrpQpq1bdOusUOpTlPrS2YO4uBq7fd+U0AUC0ElY/6+Vjf1zjVNNlHuZJKQmC3P4nEz Q9Gf8H7Eoajg+Ud+emM7tVWQay1gcyjc36JLPqjq+5OgRXYPxTxriMriPcKiximYLO0hkn YZ/WgGDWpXkEWdUSmi/bmYqBxjW9b8s= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-122-Y6LZ4SmiMlOHYD5REWIxvg-1; Mon, 11 Apr 2022 07:25:14 -0400 X-MC-Unique: Y6LZ4SmiMlOHYD5REWIxvg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 954CD2A2AD4D; Mon, 11 Apr 2022 11:25:13 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 658C1145BA44; Mon, 11 Apr 2022 11:25:13 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 70758180084D; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [PATCH v3 4/8] CryptoPkg/CrtLibSupport: add UINT_MAX Date: Mon, 11 Apr 2022 13:24:53 +0200 Message-Id: <20220411112457.506101-5-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Add define for UINT_MAX. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann Reviewed-by: Jiewen Yao --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index b1db70a269ff..aed21932278e 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -82,6 +82,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define INT_MIN (-INT_MAX-1) /* Minimum (signed) int value */ #define LONG_MAX 0X7FFFFFFFL /* max value for a long */ #define LONG_MIN (-LONG_MAX-1) /* min value for a long */ +#define UINT_MAX 0xFFFFFFFF /* Maximum unsigned int value */ #define ULONG_MAX 0xFFFFFFFF /* Maximum unsigned long value */ #define CHAR_BIT 8 /* Number of bits in a char */ -- 2.35.1