]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
hide asm functions on apple platforms 3688/head
authorNidhi Jaju <nidhijaju@google.com>
Mon, 26 Jun 2023 00:07:30 +0000 (00:07 +0000)
committerNidhi Jaju <nidhijaju@google.com>
Mon, 26 Jun 2023 00:07:30 +0000 (00:07 +0000)
lib/common/portability_macros.h

index 8fd6ea82d199228deae05909bfb73f0d78686a00..e50314a78e4792ffaf61aae45b8060594591b309 100644 (file)
@@ -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