Revision: 3080 http://trac.macosforge.org/projects/ruby/changeset/3080 Author: lsansonetti@apple.com Date: 2009-12-06 19:32:54 -0800 (Sun, 06 Dec 2009) Log Message: ----------- potentially fix 10.5 build Modified Paths: -------------- MacRuby/trunk/string.c Modified: MacRuby/trunk/string.c =================================================================== --- MacRuby/trunk/string.c 2009-12-07 01:49:48 UTC (rev 3079) +++ MacRuby/trunk/string.c 2009-12-07 03:32:54 UTC (rev 3080) @@ -3522,6 +3522,14 @@ * "1,2,,3,4,,".split(',', -4) #=> ["1", "2", "", "3", "4", "", ""] */ +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 +static inline bool +CFStringIsSurrogateHighCharacter(UniChar character) +{ + return ((character >= 0xD800UL) && (character <= 0xDBFFUL) ? true : false); +} +#endif + static VALUE rb_str_split_m(VALUE str, SEL sel, int argc, VALUE *argv) {