aboutsummaryrefslogtreecommitdiff
path: root/lib/common/portability_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/portability_macros.h')
-rw-r--r--lib/common/portability_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common/portability_macros.h b/lib/common/portability_macros.h
index 8fd6ea82..e50314a7 100644
--- a/lib/common/portability_macros.h
+++ b/lib/common/portability_macros.h
@@ -68,6 +68,8 @@
/* Mark the internal assembly functions as hidden */
#ifdef __ELF__
# define ZSTD_HIDE_ASM_FUNCTION(func) .hidden func
+#elif defined(__APPLE__)
+# define ZSTD_HIDE_ASM_FUNCTION(func) .private_extern func
#else
# define ZSTD_HIDE_ASM_FUNCTION(func)
#endif