Workaround USE_MJIT warnings

This commit is contained in:
Takashi Kokubun 2023-03-05 14:15:19 -08:00
parent 823309debc
commit 1c267d0723
Notes: git 2023-03-06 07:29:28 +00:00
2 changed files with 6 additions and 0 deletions

3
mjit.c
View File

@ -9,6 +9,9 @@
#include "ruby/internal/config.h" // defines USE_MJIT
// ISO C requires a translation unit to contain at least one declaration
void rb_mjit(void) {}
#if USE_MJIT
#include "constant.h"

View File

@ -8,6 +8,9 @@
#include "ruby/internal/config.h" // defines USE_MJIT
// ISO C requires a translation unit to contain at least one declaration
void rb_mjit_c(void) {}
#if USE_MJIT
#include "mjit.h"