From: Nidhi Jaju Date: Mon, 26 Jun 2023 00:07:30 +0000 (+0000) Subject: hide asm functions on apple platforms X-Git-Tag: v1.5.6^2~145^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a30e2b4a69e6fcca9c2a6f9d4e43e8e3b243c8;p=thirdparty%2Fzstd.git hide asm functions on apple platforms --- diff --git a/lib/common/portability_macros.h b/lib/common/portability_macros.h index 8fd6ea82d..e50314a78 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