diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-15 11:49:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-15 11:49:06 +0000 |
commit | 7cd76ab0c579ee5400d0d33753369e675b497d36 (patch) | |
tree | d35212b88b3af66efc3eada3fd4c4e114317d431 /internal.h | |
parent | 64f9f1ba5884975ba91abcdb7697988ba0ba64bf (diff) | |
download | ruby-7cd76ab0c579ee5400d0d33753369e675b497d36.tar.gz |
* 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
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |