From 7cd76ab0c579ee5400d0d33753369e675b497d36 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 15 Nov 2014 11:49:06 +0000 Subject: * internal.h: Include ruby.h and ruby/encoding.h to be includable without prior inclusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index f106f4cfa5..0025355477 100644 --- a/internal.h +++ b/internal.h @@ -12,6 +12,9 @@ #ifndef RUBY_INTERNAL_H #define RUBY_INTERNAL_H 1 +#include "ruby.h" +#include "ruby/encoding.h" + #if defined(__cplusplus) extern "C" { #if 0 @@ -568,7 +571,6 @@ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2); void Init_ext(void); /* encoding.c */ -#ifdef RUBY_ENCODING_H enum ruby_preserved_encindex { ENCINDEX_ASCII, ENCINDEX_UTF_8, @@ -589,7 +591,7 @@ enum ruby_preserved_encindex { ENCINDEX_BUILTIN_MAX }; -#endif + #define rb_ascii8bit_encindex() ENCINDEX_ASCII #define rb_utf8_encindex() ENCINDEX_UTF_8 #define rb_usascii_encindex() ENCINDEX_US_ASCII -- cgit v1.2.3