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

ruby/internal/config.h needs to be included first

to define USE_MJIT.
This commit is contained in:
Takashi Kokubun 2020-11-22 21:02:01 -08:00
parent 0a2b987696
commit 2700df3c9d
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
3 changed files with 4 additions and 3 deletions

3
mjit.c
View file

@ -11,9 +11,10 @@
// 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"

2
mjit.h
View file

@ -8,7 +8,7 @@
**********************************************************************/
#include "ruby/internal/config.h"
#include "ruby/internal/config.h" // defines USE_MJIT
#include "ruby/internal/stdbool.h"
#include "vm_core.h"

View file

@ -10,7 +10,7 @@
// 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