summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-19 12:42:02 +0900
committergit <[email protected]>2024-11-19 03:42:43 +0000
commit727b2a29990022fc96eddb4c63271f0eac60d926 (patch)
treea28f90dd7c7c49b8966e66c287e3294e54260e50
parentb23c5063e8ccfe67d0bd64a87b18b00675b0577d (diff)
[ruby/digest] Fix `-Wundef` warnings
https://github.com/ruby/digest/commit/0ea3ac9926
-rw-r--r--ext/digest/digest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/digest.h b/ext/digest/digest.h
index 32b1d3da1f..c5c37583a6 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);