[前][次][番号順一覧][スレッド一覧]

ruby-changes:71364

From: Nobuyoshi <ko1@a...>
Date: Fri, 11 Mar 2022 15:10:48 +0900 (JST)
Subject: [ruby-changes:71364] 49447f828b (master): Move ruby.h in `#ifdef RUBY` block

https://git.ruby-lang.org/ruby.git/commit/?id=49447f828b

From 49447f828b19319d83ed97260da8a9527fa83ce9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 11 Mar 2022 15:08:23 +0900
Subject: 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 @@ https://github.com/ruby/ruby/blob/trunk/regenc.h#L40
 #   include "ruby/defines.h"
 #  endif
 # endif
+# include "ruby.h"
 #else /* RUBY */
 # ifndef PACKAGE
 /* PACKAGE is defined in config.h */
@@ -51,8 +52,6 @@ https://github.com/ruby/ruby/blob/trunk/regenc.h#L52
 # undef ONIG_ESCAPE_UCHAR_COLLISION
 #endif
 
-#include "ruby.h"
-
 #ifdef RUBY
 # include "ruby/onigmo.h"
 #else
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]