MdeModulePkg/RegularExpressionDxe: Fix GCC build error

Fix GCC build error on AARCH64 system.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
devel@edk2.groups.io 2022-12-01 04:41:58 -08:00 committed by mergify[bot]
parent d795fb571b
commit 55b67b6950
1 changed files with 3 additions and 4 deletions

View File

@ -4,6 +4,7 @@
(C) Copyright 2014-2021 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@ -36,11 +37,9 @@ typedef INTN intptr_t;
#define offsetof OFFSET_OF
#endif
#ifdef MDE_CPU_IA32
#if defined (MDE_CPU_IA32) || defined (MDE_CPU_ARM) || defined (MDE_CPU_EBC)
#define SIZEOF_VOIDP 4
#endif
#ifdef MDE_CPU_X64
#else
#define SIZEOF_VOIDP 8
#endif