summaryrefslogtreecommitdiff
path: root/src/base/compiler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/compiler.hh')
-rw-r--r--src/base/compiler.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/compiler.hh b/src/base/compiler.hh
index 4765adc36..35156ee67 100644
--- a/src/base/compiler.hh
+++ b/src/base/compiler.hh
@@ -56,6 +56,8 @@
# define M5_DEPRECATED __attribute__((deprecated))
# define M5_DEPRECATED_MSG(MSG) __attribute__((deprecated(MSG)))
# define M5_UNREACHABLE __builtin_unreachable()
+# define M5_PUBLIC __attribute__ ((visibility ("default")))
+# define M5_LOCAL __attribute__ ((visibility ("hidden")))
#endif
#if defined(__clang__)