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:
parent
3df16924b4
commit
638fd8774b
Notes:
git
2022-02-22 23:55:56 +09:00
4 changed files with 7 additions and 0 deletions
|
@ -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); \
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
#include "ruby.h"
|
||||||
|
|
||||||
void Init_dot(void) {}
|
void Init_dot(void) {}
|
||||||
|
|
2
regenc.h
2
regenc.h
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue