summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-11 15:08:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-11 15:08:23 +0900
commit49447f828b19319d83ed97260da8a9527fa83ce9 (patch)
treeffc0623456d2493dd81a123db7523e2040720006
parent82dea29073d50304b6029b15d07666994533d8d1 (diff)
Move ruby.h in `#ifdef RUBY` block
Must not depend on ruby specific files in Ruby unrelated cases.
-rw-r--r--regenc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/regenc.h b/regenc.h
index bc1365058e..8c4ff0483b 100644
--- a/regenc.h
+++ b/regenc.h
@@ -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