diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-29 08:48:35 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-29 08:48:35 +0000 |
commit | 315196bc7af78c121df9a6a4a01c8ac2f354fc2a (patch) | |
tree | 0c8a3d64d648f361ef4236f3eafc81e4ca54d003 /encoding.c | |
parent | 86a9215bbfa659c3f663c5a61f855567c15c5437 (diff) | |
download | ruby-315196bc7af78c121df9a6a4a01c8ac2f354fc2a.tar.gz |
* dmyencoding.c, encoding.c (enc_init_db, NO_ENCDB_H):
miniruby doesn't use encdb.
* common.mk: encdb.h use miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/encoding.c b/encoding.c index a23f52b356..71a531a0fd 100644 --- a/encoding.c +++ b/encoding.c @@ -49,7 +49,11 @@ static void enc_declare(const char *name); static void enc_init_db(void) { +#ifdef NO_ENCDB_H +#define ENCODING_COUNT ENCINDEX_BUILTIN_MAX +#else #include "encdb.h" +#endif } #define enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc)) |