ext/extzstd.c in extzstd-0.3.1 vs ext/extzstd.c in extzstd-0.3.2

- old
+ new

@@ -1,10 +1,14 @@ #include "extzstd.h" #include <zstd/lib/common/mem.h> #include <zstd_errors.h> #include <zdict.h> +#ifndef RB_EXT_RACTOR_SAFE +# define RB_EXT_RACTOR_SAFE(FEATURE) ((void)(FEATURE)) +#endif + VALUE extzstd_mZstd; static ID id_initialize; static ID id_error_code; @@ -611,9 +615,11 @@ */ RBEXT_API void Init_extzstd(void) { + RB_EXT_RACTOR_SAFE(true); + id_initialize = rb_intern("initialize"); id_error_code = rb_intern("error_code"); extzstd_mZstd = rb_define_module("Zstd");