mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fiddle] Check HAVE_RUBY_MEMORY_VIEW_H rather than API version
93f9564446
This commit is contained in:
parent
a5d6ea9266
commit
40d45ab093
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
|||
#define FIDDLE_H
|
||||
|
||||
#include <ruby.h>
|
||||
#include <ruby/version.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
@ -190,7 +189,7 @@
|
|||
#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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue