From 6bfb1d3121afbd00c338df8f169cae6593cf04d9 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 24 Feb 2007 17:52:08 +0000 Subject: * defines.h: Pull the RUBY_MBCHAR_MAXSIZE definition from trunk, which is necessary for dir.c to compile on djgpp and emx. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- defines.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'defines.h') diff --git a/defines.h b/defines.h index e649860..f1a565a 100644 --- a/defines.h +++ b/defines.h @@ -203,6 +203,11 @@ void xfree _((void*)); #define EXTERN RUBY_EXTERN /* deprecated */ #endif +#ifndef RUBY_MBCHAR_MAXSIZE +#define RUBY_MBCHAR_MAXSIZE INT_MAX + /* MB_CUR_MAX will not work well in C locale */ +#endif + #if defined(sparc) || defined(__sparc__) static inline void flush_register_windows(void) -- cgit v1.1