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:
Jose Marinho 2022-04-05 18:53:25 +01:00 committed by mergify[bot]
parent 1ee1622817
commit 9f197e44b1
1 changed files with 3 additions and 0 deletions

View File

@ -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