diff options
author | Peter Zhu <[email protected]> | 2022-02-18 11:05:52 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-02-22 09:55:21 -0500 |
commit | 638fd8774bed27b997f3b634ba8be7aa304be3c3 () | |
tree | db607f7f88c8e5542c71797a98add34bbf249eb2 | |
parent | 3df16924b45adfd88c20ef5fe25b10a1acb82dd7 (diff) |
[Feature #18249] Include ruby.h in extensions to have ABI version
All shared libraries must have `include/ruby/internal/abi.h` to include the ABI version. Including `ruby.h` will guarantee that.
Notes: Merged: https://.com/ruby/ruby/pull/5474
-rw-r--r-- | enc/encinit.c.erb | 1 | ||||
-rw-r--r-- | enc/trans/transdb.c | 2 | ||||
-rw-r--r-- | ext/-test-/load/dot.dot/dot.dot.c | 2 | ||||
-rw-r--r-- | regenc.h | 2 |
4 files changed, 7 insertions, 0 deletions
@@ -2,6 +2,7 @@ * Author: [email protected] (Yugui Sonoda) */ #include <stdio.h> #define init(func, name) { \ extern void func(void); \ @@ -9,6 +9,8 @@ **********************************************************************/ void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib); void @@ -1 +1,3 @@ void Init_dot(void) {} @@ -51,6 +51,8 @@ # undef ONIG_ESCAPE_UCHAR_COLLISION #endif #ifdef RUBY # include "ruby/onigmo.h" #else |