summaryrefslogtreecommitdiff
path: root/ext/fiddle/fiddle.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-14 15:38:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-14 18:55:59 +0900
commit169529a0c0973fa925ad3b36f4427d31e802a37e (patch)
tree12d70a5d6bf41b5dc781e4148d2ce9a7b6f75f4b /ext/fiddle/fiddle.c
parent818c74b7f4d5b88833af26226fc81e563b5d11b9 (diff)
[ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API version (https://github.com/ruby/fiddle/pull/86)
https://github.com/ruby/fiddle/commit/c5abcc3a7e
Diffstat (limited to 'ext/fiddle/fiddle.c')
-rw-r--r--ext/fiddle/fiddle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/fiddle.c b/ext/fiddle/fiddle.c
index dd819a298ca..a8b5123269c 100644
--- a/ext/fiddle/fiddle.c
+++ b/ext/fiddle/fiddle.c
@@ -7,7 +7,7 @@ VALUE rb_eFiddleError;
void Init_fiddle_pointer(void);
void Init_fiddle_pinned(void);
-#ifdef FIDDLE_MEMORY_VIEW
+#ifdef HAVE_RUBY_MEMORY_VIEW_H
void Init_fiddle_memory_view(void);
#endif
@@ -546,7 +546,7 @@ Init_fiddle(void)
Init_fiddle_pointer();
Init_fiddle_pinned();
-#ifdef FIDDLE_MEMORY_VIEW
+#ifdef HAVE_RUBY_MEMORY_VIEW_H
Init_fiddle_memory_view();
#endif
}