ruby-changes:59491
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 26 Dec 2019 20:45:45 +0900 (JST)
Subject: [ruby-changes:59491] ba78bf9778 (master): debug_counter.h must be self-contained
https://git.ruby-lang.org/ruby.git/commit/?id=ba78bf9778 From ba78bf9778082795bdb4735ccd7b692b5c3769f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Wed, 25 Dec 2019 14:19:48 +0900 Subject: debug_counter.h must be self-contained Include what is necessary. diff --git a/debug_counter.h b/debug_counter.h index 066533d..eb313fc 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -341,6 +341,10 @@ RB_DEBUG_COUNTER(load_path_is_not_realpath) https://github.com/ruby/ruby/blob/trunk/debug_counter.h#L341 #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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/