Modified: MacRuby/trunk/string.c (3079 => 3080)
--- 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)
{