summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/Include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-04-11 19:24:52 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-04-12 14:39:01 +0000
commit58771f4b2dcafb2cf1ea4dafa07a8f254155ed3f (patch)
tree304c92b760c0ee09df2511f8d6f4b5d6e92f867c /CryptoPkg/Library/Include
parent3b4b49cf003c17f1964b258706bddd0a8921b5cf (diff)
downloadedk2-58771f4b2dcafb2cf1ea4dafa07a8f254155ed3f.tar.gz
edk2-58771f4b2dcafb2cf1ea4dafa07a8f254155ed3f.tar.bz2
edk2-58771f4b2dcafb2cf1ea4dafa07a8f254155ed3f.zip
CryptoPkg/CrtLibSupport: add INT_MIN
Add #define for INT_MIN. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'CryptoPkg/Library/Include')
-rw-r--r--CryptoPkg/Library/Include/CrtLibSupport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h
index a47befbb90..b1db70a269 100644
--- a/CryptoPkg/Library/Include/CrtLibSupport.h
+++ b/CryptoPkg/Library/Include/CrtLibSupport.h
@@ -79,6 +79,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#define EINVAL 22 /* Invalid argument */
#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
#define INT_MAX 0x7FFFFFFF /* Maximum (signed) int value */
+#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 ULONG_MAX 0xFFFFFFFF /* Maximum unsigned long value */