Skip to content

Commit

Permalink
CryptoPkg: Add dummy inttypes header to fix clang build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Yi Li <[email protected]>
Cc: Guomin Jiang <[email protected]>
Signed-off-by: Wenxing Hou <[email protected]>

Reviewed-by: Yi Li <[email protected]>
  • Loading branch information
Wenxing-hou authored and mergify[bot] committed Jan 22, 2024
1 parent da228b2 commit 0c6d29b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CryptoPkg/CryptoPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions CryptoPkg/Library/Include/inttypes.h
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 0c6d29b

Please sign in to comment.