ruby-changes:66777
From: Nobuyoshi <ko1@a...>
Date: Tue, 13 Jul 2021 20:37:11 +0900 (JST)
Subject: [ruby-changes:66777] 40d45ab093 (master): [ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API version
https://git.ruby-lang.org/ruby.git/commit/?id=40d45ab093 From 40d45ab093fbd03fa71a5f3ca1982166f12693ef Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 13 Jul 2021 20:32:13 +0900 Subject: [ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API version https://github.com/ruby/fiddle/commit/93f9564446 --- ext/fiddle/fiddle.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/fiddle/fiddle.h b/ext/fiddle/fiddle.h index c5d7fa8..e8ed4ef 100644 --- a/ext/fiddle/fiddle.h +++ b/ext/fiddle/fiddle.h @@ -2,7 +2,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/fiddle.h#L2 #define FIDDLE_H #include <ruby.h> -#include <ruby/version.h> #include <errno.h> #if defined(_WIN32) @@ -190,7 +189,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/fiddle.h#L189 #define ALIGN_INT32_T ALIGN_OF(int32_t) #define ALIGN_INT64_T ALIGN_OF(int64_t) -#if RUBY_API_VERSION_MAJOR >= 3 +#ifdef HAVE_RUBY_MEMORY_VIEW_H # define FIDDLE_MEMORY_VIEW #endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/