ruby-changes:63700
From: Takashi <ko1@a...>
Date: Mon, 23 Nov 2020 14:02:23 +0900 (JST)
Subject: [ruby-changes:63700] 2700df3c9d (master): ruby/internal/config.h needs to be included first
https://git.ruby-lang.org/ruby.git/commit/?id=2700df3c9d From 2700df3c9d0c163bdc5513bd0a86a783efb3c4cf Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 22 Nov 2020 21:02:01 -0800 Subject: ruby/internal/config.h needs to be included first to define USE_MJIT. diff --git a/mjit.c b/mjit.c index b724024..8f400f5 100644 --- a/mjit.c +++ b/mjit.c @@ -11,9 +11,10 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L11 // To share variables privately, include mjit_worker.c instead of linking. +#include "ruby/internal/config.h" // defines USE_MJIT + #if USE_MJIT -#include "ruby/internal/config.h" #include "constant.h" #include "id_table.h" #include "internal.h" diff --git a/mjit.h b/mjit.h index 63cd1d4..a05305c 100644 --- a/mjit.h +++ b/mjit.h @@ -8,7 +8,7 @@ https://github.com/ruby/ruby/blob/trunk/mjit.h#L8 **********************************************************************/ -#include "ruby/internal/config.h" +#include "ruby/internal/config.h" // defines USE_MJIT #include "ruby/internal/stdbool.h" #include "vm_core.h" diff --git a/mjit_compile.c b/mjit_compile.c index cf0c6dc..c1d8f34 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -10,7 +10,7 @@ https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L10 // call Ruby methods (C functions that may call rb_funcall) or trigger // GC (using ZALLOC, xmalloc, xfree, etc.) in this file. -#include "ruby/internal/config.h" +#include "ruby/internal/config.h" // defines USE_MJIT #if USE_MJIT -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/