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

Move ruby.h in #ifdef RUBY block

Must not depend on ruby specific files in Ruby unrelated cases.
This commit is contained in:
Nobuyoshi Nakada 2022-03-11 15:08:23 +09:00
parent 82dea29073
commit 49447f828b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -40,6 +40,7 @@
# include "ruby/defines.h"
# endif
# endif
# include "ruby.h"
#else /* RUBY */
# ifndef PACKAGE
/* PACKAGE is defined in config.h */
@ -51,8 +52,6 @@
# undef ONIG_ESCAPE_UCHAR_COLLISION
#endif
#include "ruby.h"
#ifdef RUBY
# include "ruby/onigmo.h"
#else