summaryrefslogtreecommitdiffstats
path: root/base/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/port.h')
-rw-r--r--base/port.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/port.h b/base/port.h
index 9207192..9681ce8 100644
--- a/base/port.h
+++ b/base/port.h
@@ -54,9 +54,12 @@ inline void va_copy(va_list& a, va_list& b) {
#if defined(OS_WIN)
#define API_CALL __stdcall
#define DYNAMIC_EXPORT __declspec(dllexport)
+#elif defined(OS_MACOSX)
+#define DYNAMIC_EXPORT __attribute__((visibility("default")))
+#elif defined(OS_LINUX)
+#define DYNAMIC_EXPORT
#elif defined(OS_POSIX)
#define API_CALL
-#define DYNAMIC_EXPORT
#endif
#endif // BASE_PORT_H_