ext/zstdruby/libzstd/common/portability_macros.h in zstd-ruby-1.5.1.1 vs ext/zstdruby/libzstd/common/portability_macros.h in zstd-ruby-1.5.2.0

- old
+ new

@@ -63,9 +63,15 @@ # else # define ZSTD_DATAFLOW_SANITIZER 0 # 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. */ #ifndef DYNAMIC_BMI2