summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-24 12:52:26 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-24 12:52:26 (GMT)
commit4ddce7a68bf974c124ed15cf364e0ea0eb1a5f15 (patch)
tree6afb45eafdcbdfdea31f131e87df500deecc3424 /eval_intern.h
parent2265bdfac32d4551d76ab1da4fc2c891057c9916 (diff)
* configure.in: Check mblen().
* eval_intern.h (CharNext): Don't use mblen() is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 334b8d4..190ef91 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -195,7 +195,11 @@ VALUE rb_vm_top_self();
VALUE rb_vm_cbase(void);
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
-#define CharNext(p) ((p) + mblen((p), RUBY_MBCHAR_MAXSIZE))
+# ifdef HAVE_MBLEN
+# define CharNext(p) ((p) + mblen((p), RUBY_MBCHAR_MAXSIZE))
+# else
+# define CharNext(p) ((p) + 1)
+# endif
#endif
#if defined DOSISH || defined __CYGWIN__