From 1bfd1ed43f839ebe6ae0408fb0522ba0921d2e4d 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@11873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ defines.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4d3870d21..b43a023cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 25 02:50:51 2007 Akinori MUSHA + + * defines.h: Pull the RUBY_MBCHAR_MAXSIZE definition from trunk, + which is necessary for dir.c to compile on djgpp and emx. + Sat Feb 24 17:04:01 2007 Tadayoshi Funaba * lib/date/format.rb: updated based on date2 4.0.3. diff --git a/defines.h b/defines.h index e649860d8..f1a565acf 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