[ruby/digest] Fix -Wundef warnings

https://github.com/ruby/digest/commit/0ea3ac9926
This commit is contained in:
Nobuyoshi Nakada 2024-11-19 12:42:02 +09:00 committed by git
parent b23c5063e8
commit 727b2a2999

View File

@ -76,7 +76,7 @@ rb_id_metadata(void)
static inline VALUE
rb_digest_make_metadata(const rb_digest_metadata_t *meta)
{
#if EXTSTATIC
#if defined(EXTSTATIC) && EXTSTATIC
/* The extension is built as a static library, so safe to refer to
* rb_digest_wrap_metadata directly. */
extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta);