summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PrmPkg/Include/Prm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PrmPkg/Include/Prm.h b/PrmPkg/Include/Prm.h
index e290e53510..007f73416a 100644
--- a/PrmPkg/Include/Prm.h
+++ b/PrmPkg/Include/Prm.h
@@ -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