diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-01-13 14:23:19 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-01-13 14:23:19 +0000 |
| commit | 5dff7640ffa99350cd49a61a292d3d468bc70218 (patch) | |
| tree | 318d7e3cab2d4a5e29c70a2126b4402391768989 /textproc/eruby/files/patch-eruby_lib.c | |
| parent | Fix build by change dependences. (diff) | |
- fix build after ruby API change
Diffstat (limited to 'textproc/eruby/files/patch-eruby_lib.c')
| -rw-r--r-- | textproc/eruby/files/patch-eruby_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/textproc/eruby/files/patch-eruby_lib.c b/textproc/eruby/files/patch-eruby_lib.c index 1a37eeed050b..08665f6651c1 100644 --- a/textproc/eruby/files/patch-eruby_lib.c +++ b/textproc/eruby/files/patch-eruby_lib.c @@ -8,7 +8,7 @@ #include "eruby.h" #include "config.h" -+#if defined(RFLOAT_VALUE) ++#if defined(DWITH_RUBY_19) +#include "ruby/regex.h" +#undef ismbchar +#define ismbchar(c,e,enc) ((mbclen(c,e,enc)) != 1) @@ -24,7 +24,7 @@ } s++; goto again; -+#if !defined(RFLOAT_VALUE) ++#if !defined(DWITH_RUBY_19) case 'K': s++; if (*s == '\0') { @@ -83,7 +83,7 @@ if (prevc < 0) output_literal(compiler, "print \""); output_char(compiler, c); prevc = c; -+#if defined(RFLOAT_VALUE) ++#if defined(DWITH_RUBY_19) + if (ismbchar(c,c+4,OnigEncDefaultCharEncoding)) { + int i, len = mbclen(c,c,OnigEncDefaultCharEncoding) - 1; +#else |
