mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
PrmPkg: Enable external visibility on PRM symbols
Enable GCC compilations to keep external symbols when generating a PRM module. Signed-off-by: Jose Marinho <jose.marinho@arm.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
1ee1622817
commit
9f197e44b1
@ -3,6 +3,7 @@
|
|||||||
Common Platform Runtime Mechanism (PRM) definitions.
|
Common Platform Runtime Mechanism (PRM) definitions.
|
||||||
|
|
||||||
Copyright (c) Microsoft Corporation
|
Copyright (c) Microsoft Corporation
|
||||||
|
Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -15,6 +16,8 @@
|
|||||||
|
|
||||||
#if defined (_MSC_VER)
|
#if defined (_MSC_VER)
|
||||||
#define PRM_EXPORT_API __declspec(dllexport)
|
#define PRM_EXPORT_API __declspec(dllexport)
|
||||||
|
#elif defined (__GNUC__)
|
||||||
|
#define PRM_EXPORT_API __attribute__ ((visibility ("default")))
|
||||||
#else
|
#else
|
||||||
#define PRM_EXPORT_API
|
#define PRM_EXPORT_API
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user