mirror of https://github.com/acidanthera/audk.git
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.
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
@ -15,6 +16,8 @@
|
|||
|
||||
#if defined (_MSC_VER)
|
||||
#define PRM_EXPORT_API __declspec(dllexport)
|
||||
#elif defined (__GNUC__)
|
||||
#define PRM_EXPORT_API __attribute__ ((visibility ("default")))
|
||||
#else
|
||||
#define PRM_EXPORT_API
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue