diff --git a/ext/digest/digest.def b/ext/digest/digest.def new file mode 100644 index 0000000000..6b724801ad --- /dev/null +++ b/ext/digest/digest.def @@ -0,0 +1,3 @@ +EXPORTS +Init_digest +rb_digest_wrap_metadata diff --git a/ext/digest/digest.h b/ext/digest/digest.h index 44158da613..4503929bab 100644 --- a/ext/digest/digest.h +++ b/ext/digest/digest.h @@ -81,6 +81,7 @@ rb_digest_make_metadata(const rb_digest_metadata_t *meta) static wrapper_func_type wrapper; if (!wrapper) { wrapper = (wrapper_func_type)rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata"); + if (!wrapper) rb_raise(rb_eLoadError, "rb_digest_wrap_metadata not found"); } return wrapper(meta); #else