Skip to content

Commit 727b2a2

Browse files
nobumatzbot
authored andcommitted
[ruby/digest] Fix -Wundef warnings
ruby/digest@0ea3ac9926
1 parent b23c506 commit 727b2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/digest/digest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ rb_id_metadata(void)
7676
static inline VALUE
7777
rb_digest_make_metadata(const rb_digest_metadata_t *meta)
7878
{
79-
#if EXTSTATIC
79+
#if defined(EXTSTATIC) && EXTSTATIC
8080
/* The extension is built as a static library, so safe to refer to
8181
* rb_digest_wrap_metadata directly. */
8282
extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta);

0 commit comments

Comments
 (0)