From 0ea3ac9926574d4082c820e468bc9666703f2a26 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 19 Nov 2024 12:42:02 +0900 Subject: [PATCH] Fix `-Wundef` warnings --- ext/digest/digest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/digest/digest.h b/ext/digest/digest.h index 32b1d3d..c5c3758 100644 --- a/ext/digest/digest.h +++ b/ext/digest/digest.h @@ -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);