From 0c6d29be8b1731ff6880d59e0189184395e45968 Mon Sep 17 00:00:00 2001 From: "Hou, Wenxing" Date: Sat, 20 Jan 2024 21:45:24 +0800 Subject: 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 Cc: Yi Li Cc: Guomin Jiang Signed-off-by: Wenxing Hou Reviewed-by: Yi Li --- CryptoPkg/CryptoPkg.ci.yaml | 1 + CryptoPkg/Library/Include/inttypes.h | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 CryptoPkg/Library/Include/inttypes.h diff --git a/CryptoPkg/CryptoPkg.ci.yaml b/CryptoPkg/CryptoPkg.ci.yaml index f961d85..b601bcf 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 0000000..3d44d82 --- /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.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include -- cgit v1.1