diff options
author | Hou, Wenxing <wenxing.hou@intel.com> | 2024-01-20 21:45:24 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-22 03:02:37 +0000 |
commit | 0c6d29be8b1731ff6880d59e0189184395e45968 (patch) | |
tree | 9bef43696aa708de44a3f91d4157b67716768eec /CryptoPkg | |
parent | da228b29bdf5d52c029166b51538c9f1d76c88da (diff) | |
download | edk2-0c6d29be8b1731ff6880d59e0189184395e45968.tar.gz edk2-0c6d29be8b1731ff6880d59e0189184395e45968.tar.bz2 edk2-0c6d29be8b1731ff6880d59e0189184395e45968.zip |
CryptoPkg: Add dummy inttypes header to fix clang build
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4642
When use Mbedtls, there is a clang build error.
Add dummy inttypes header to fix clang build.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Yi Li <yi1.li@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
Reviewed-by: Yi Li <yi1.li@intel.com>
Diffstat (limited to 'CryptoPkg')
-rw-r--r-- | CryptoPkg/CryptoPkg.ci.yaml | 1 | ||||
-rw-r--r-- | CryptoPkg/Library/Include/inttypes.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/CryptoPkg/CryptoPkg.ci.yaml b/CryptoPkg/CryptoPkg.ci.yaml index f961d85927..b601bcf85c 100644 --- a/CryptoPkg/CryptoPkg.ci.yaml +++ b/CryptoPkg/CryptoPkg.ci.yaml @@ -44,6 +44,7 @@ # This has Mbedtls interfaces that aren't UEFI spec compliant
"Library/Include/stdint.h",
"Library/Include/stubs-32.h",
+ "Library/Include/inttypes.h",
# These directories contain auto-generated OpenSSL content
"Library/OpensslLib",
"Library/IntrinsicLib",
diff --git a/CryptoPkg/Library/Include/inttypes.h b/CryptoPkg/Library/Include/inttypes.h new file mode 100644 index 0000000000..3d44d8201d --- /dev/null +++ b/CryptoPkg/Library/Include/inttypes.h @@ -0,0 +1,9 @@ +/** @file
+ Include file to support building the third-party cryptographic library.
+
+Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <CrtLibSupport.h>
|