1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

debug_counter.h must be self-contained

Include what is necessary.
This commit is contained in:
卜部昌平 2019-12-25 14:19:48 +09:00
parent b25e27277d
commit ba78bf9778
Notes: git 2019-12-26 20:46:09 +09:00

View file

@ -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