From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9399D780091 for ; Wed, 10 Jan 2024 11:16:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=L468smpK1pzD0XD3lt/xVTF9Uor05nD2ZvC7funM6OA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704885360; v=1; b=qqptgAoyNjbGEP9mzW7S5CXXF+RQwncycI522HKKqMc0Zx5mQsUpuKLdg9TiXqiakmK5j4oX nusOz7Yh4T/Ebms+56eedal14AA7Stdnhb0QlYR6J5Q7SkjAOxdY34rt5Au8TifKzoH0QWVliPr qID8Zn6bVgTf/K8uoygaNMy0= X-Received: by 127.0.0.2 with SMTP id C02aYY7687511xL7mtfLH4uR; Wed, 10 Jan 2024 03:16:00 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web11.9422.1704885359336934057 for ; Wed, 10 Jan 2024 03:15:59 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="11969133" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="11969133" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 03:15:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="23912507" X-Received: from shwdejointd777.ccr.corp.intel.com ([10.239.58.116]) by orviesa002.jf.intel.com with ESMTP; 10 Jan 2024 03:15:54 -0800 From: "Wenxing Hou" To: devel@edk2.groups.io Cc: Jiewen Yao , Yi Li , Guomin Jiang Subject: [edk2-devel] [PATCH] CryptoPkg: change the define Date: Wed, 10 Jan 2024 19:15:51 +0800 Message-Id: <20240110111551.3706-1-wenxing.hou@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,wenxing.hou@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: OvR7bgCsz8CsdDYfCfbnDE0Ix7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=qqptgAoy; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D4632 Move the define to stdint and add MACRO to prevent duplicate inclusion. Cc: Jiewen Yao Cc: Yi Li Cc: Guomin Jiang Signed-off-by: Wenxing Hou --- CryptoPkg/Library/Include/CrtLibSupport.h | 15 --------------- CryptoPkg/Library/Include/stdint.h | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index 76591f12cb..f36fe08f0c 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -424,19 +424,4 @@ strcpy ( #define atoi(nptr) AsciiStrDecimalToUintn(nptr)=0D #define gettimeofday(tvp, tz) do { (tvp)->tv_sec =3D time(NULL); (tvp)->= tv_usec =3D 0; } while (0)=0D =0D -//=0D -// only use in Mbedlts. The Openssl has defined them internally.=0D -//=0D -#ifndef OPENSSL_SYS_UEFI=0D -typedef INT8 int8_t;=0D -typedef UINT8 uint8_t;=0D -typedef INT16 int16_t;=0D -typedef UINT16 uint16_t;=0D -typedef INT32 int32_t;=0D -typedef UINT32 uint32_t;=0D -typedef INT64 int64_t;=0D -typedef UINT64 uint64_t;=0D -typedef UINTN uintptr_t;=0D -#endif=0D -=0D #endif=0D diff --git a/CryptoPkg/Library/Include/stdint.h b/CryptoPkg/Library/Include= /stdint.h index 786d57e8d5..e1f54b412e 100644 --- a/CryptoPkg/Library/Include/stdint.h +++ b/CryptoPkg/Library/Include/stdint.h @@ -6,4 +6,23 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =0D **/=0D =0D +#ifndef CRYPTO_CRT_STDIO_H_=0D +#define CRYPTO_CRT_STDIO_H_=0D #include =0D +=0D +//=0D +// only use in Mbedlts. The Openssl has defined them internally.=0D +//=0D +#ifndef OPENSSL_SYS_UEFI=0D +typedef INT8 int8_t;=0D +typedef UINT8 uint8_t;=0D +typedef INT16 int16_t;=0D +typedef UINT16 uint16_t;=0D +typedef INT32 int32_t;=0D +typedef UINT32 uint32_t;=0D +typedef INT64 int64_t;=0D +typedef UINT64 uint64_t;=0D +typedef UINTN uintptr_t;=0D +#endif=0D +=0D +#endif=0D --=20 2.26.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113524): https://edk2.groups.io/g/devel/message/113524 Mute This Topic: https://groups.io/mt/103638765/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-