* [PATCH V2] MdeModulePkg/RegularExpressionDxe: Fix GCC build error
@ 2022-12-01 12:38 Nickle Wang
0 siblings, 0 replies; only message in thread
From: Nickle Wang @ 2022-12-01 12:38 UTC (permalink / raw)
To: devel; +Cc: Jian J Wang, Liming Gao, Nick Ramirez
Fix GCC build error on AARCH64 system.
Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Nick Ramirez <nramirez@nvidia.com>
---
.../Universal/RegularExpressionDxe/OnigurumaUefiPort.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
index 3dc207da3e..248109b0c9 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
@@ -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
--
2.38.1.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-01 12:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 12:38 [PATCH V2] MdeModulePkg/RegularExpressionDxe: Fix GCC build error Nickle Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox