From 49447f828b19319d83ed97260da8a9527fa83ce9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 11 Mar 2022 15:08:23 +0900 Subject: [PATCH] Move ruby.h in `#ifdef RUBY` block Must not depend on ruby specific files in Ruby unrelated cases. --- regenc.h | 3 +-- 1 file changed, 1 insertion(+), 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