aboutsummaryrefslogtreecommitdiffstats
path: root/debug_counter.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-12-25 14:19:48 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-26 20:45:12 +0900
commitba78bf9778082795bdb4735ccd7b692b5c3769f9 (patch)
tree92d89e478e2fffc33c45128b2552265f4a449ad3 /debug_counter.h
parentb25e27277dc39f25cfca4db8452d254f6cc8046e (diff)
downloadruby-ba78bf9778082795bdb4735ccd7b692b5c3769f9.tar.gz
debug_counter.h must be self-contained
Include what is necessary.
Diffstat (limited to 'debug_counter.h')
-rw-r--r--debug_counter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h
index 066533d1d1..eb313fc838 100644
--- a/debug_counter.h
+++ b/debug_counter.h
@@ -341,6 +341,10 @@ RB_DEBUG_COUNTER(load_path_is_not_realpath)
#ifndef RUBY_DEBUG_COUNTER_H
#define RUBY_DEBUG_COUNTER_H 1
+#include "ruby/config.h"
+#include <stddef.h> /* for size_t */
+#include "ruby/ruby.h" /* for VALUE */
+
#if !defined(__GNUC__) && USE_DEBUG_COUNTER
#error "USE_DEBUG_COUNTER is not supported by other than __GNUC__"
#endif