From bf53d6c7d19f877c821901b3288d7f80955ffbb7 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Tue, 3 Dec 2019 14:47:38 +0900 Subject: other minior internal header tweaks These headers need no rewrite. Just add some minor tweaks, like addition of #include lines. Mainly cosmetic. TIMET_MAX_PLUS_ONE was deleted because the macro was used from only one place (directly write expression there). --- internal/transcode.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/transcode.h') diff --git a/internal/transcode.h b/internal/transcode.h index 798c9265c2..8dfd1a68ad 100644 --- a/internal/transcode.h +++ b/internal/transcode.h @@ -9,11 +9,13 @@ * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. */ +#include "ruby/config.h" +#include /* for size_t */ +#include "ruby/ruby.h" /* for VALUE */ +#include "ruby/encoding.h" /* for rb_econv_t */ /* transcode.c */ extern VALUE rb_cEncodingConverter; -#ifdef RUBY_ENCODING_H size_t rb_econv_memsize(rb_econv_t *); -#endif #endif /* INTERNAL_TRANSCODE_H */ -- cgit v1.2.3