summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/objspace/object_tracing.c3
-rw-r--r--ext/objspace/objspace.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c
index b8fa3edf4d2..24756234108 100644
--- a/ext/objspace/object_tracing.c
+++ b/ext/objspace/object_tracing.c
@@ -16,8 +16,7 @@
#include "ruby/ruby.h"
#include "ruby/debug.h"
#include "objspace.h"
-
-size_t rb_gc_count(void); /* from gc.c */
+#include "internal.h"
struct traceobj_arg {
int running;
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
index 6de5d222ac2..f9fa833c99f 100644
--- a/ext/objspace/objspace.c
+++ b/ext/objspace/objspace.c
@@ -20,8 +20,6 @@
#include "gc.h"
#include "internal.h"
-size_t rb_obj_memsize_of(VALUE);
-
/*
* call-seq:
* ObjectSpace.memsize_of(obj) -> Integer