diff options
author | devel@edk2.groups.io <devel@edk2.groups.io> | 2022-12-01 04:41:58 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-13 17:50:28 +0000 |
commit | 55b67b6950e648338adfe8ec54aeb26ed89d2c97 (patch) | |
tree | c30cb9a0fc9ede7f9f0002db79b6efc6f4018b90 | |
parent | d795fb571b9b2c2ee67ceaef372d5cc461767859 (diff) | |
download | edk2-55b67b6950e648338adfe8ec54aeb26ed89d2c97.tar.gz |
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>
-rw-r--r-- | MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h | 7 |
1 files 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
|