1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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.
This commit is contained in:
Peter Zhu 2022-02-18 11:05:52 -05:00
parent 3df16924b4
commit 638fd8774b
Notes: git 2022-02-22 23:55:56 +09:00
4 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,7 @@
* Author: yugui@google.com (Yugui Sonoda) * Author: yugui@google.com (Yugui Sonoda)
*/ */
#include <stdio.h> #include <stdio.h>
#include "ruby.h"
#define init(func, name) { \ #define init(func, name) { \
extern void func(void); \ extern void func(void); \

View file

@ -9,6 +9,8 @@
**********************************************************************/ **********************************************************************/
#include "ruby.h"
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib); void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
void void

View file

@ -1 +1,3 @@
#include "ruby.h"
void Init_dot(void) {} void Init_dot(void) {}

View file

@ -51,6 +51,8 @@
# undef ONIG_ESCAPE_UCHAR_COLLISION # undef ONIG_ESCAPE_UCHAR_COLLISION
#endif #endif
#include "ruby.h"
#ifdef RUBY #ifdef RUBY
# include "ruby/onigmo.h" # include "ruby/onigmo.h"
#else #else