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 | e8bd5195e8a1825ea149c5e2310672e32202ccac (patch) | |
tree | 0c8a3d64d648f361ef4236f3eafc81e4ca54d003 /encoding.c | |
parent | 1247746adb295ba0065bf2433e2c0e28c3754d6d (diff) | |
download | ruby-e8bd5195e8a1825ea149c5e2310672e32202ccac.tar.gz ruby-e8bd5195e8a1825ea149c5e2310672e32202ccac.tar.xz ruby-e8bd5195e8a1825ea149c5e2310672e32202ccac.zip |
* dmyencoding.c, encoding.c (enc_init_db, NO_ENCDB_H):
miniruby doesn't use encdb.
* common.mk: encdb.h use miniruby.
git-svn-id: http://svn.ruby-lang.org/repos/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 a23f52b35..71a531a0f 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)) |