summaryrefslogtreecommitdiff
path: root/rjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-08 23:07:30 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-08 23:07:30 -0800
commit7d7b67a4721c6b7abed5d1a186d0acf45e1934cc (patch)
treeed213ad806eb78a198d26a811af181b4f921d4f9 /rjit.c
parentcf08a85b852870c7dac5936552ed3a217a758ae7 (diff)
RJIT: Clean up the declaration mess
Diffstat (limited to 'rjit.c')
-rw-r--r--rjit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rjit.c b/rjit.c
index 6ea880f7f4..42eea9617a 100644
--- a/rjit.c
+++ b/rjit.c
@@ -6,10 +6,7 @@
**********************************************************************/
-#include "ruby/internal/config.h" // defines USE_RJIT
-
-// ISO C requires a translation unit to contain at least one declaration
-void rb_rjit(void) {}
+#include "rjit.h" // defines USE_RJIT
#if USE_RJIT
@@ -32,7 +29,6 @@ void rb_rjit(void) {}
#include "vm_core.h"
#include "vm_callinfo.h"
-#include "rjit.h"
#include "rjit_c.h"
#include "ruby_assert.h"
#include "ruby/debug.h"