mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Workaround USE_MJIT warnings
This commit is contained in:
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
3
mjit.c
|
@ -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"
|
||||
|
|
3
mjit_c.c
3
mjit_c.c
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue