diff options
Diffstat (limited to 'lib/common/portability_macros.h')
-rw-r--r-- | lib/common/portability_macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common/portability_macros.h b/lib/common/portability_macros.h index 627ef9ee..2143817f 100644 --- a/lib/common/portability_macros.h +++ b/lib/common/portability_macros.h @@ -65,6 +65,12 @@ # endif #endif +/* Mark the internal assembly functions as hidden */ +#ifdef __ELF__ +# define ZSTD_HIDE_ASM_FUNCTION(func) .hidden func +#else +# define ZSTD_HIDE_ASM_FUNCTION(func) +#endif /* Enable runtime BMI2 dispatch based on the CPU. * Enabled for clang & gcc >=4.8 on x86 when BMI2 isn't enabled by default. |