Do not build utf8_encode on CARBON platform

utf8_encode is not used by g_utf8_collate_key on this platform.

https://bugzilla.gnome.org/show_bug.cgi?id=780306
This commit is contained in:
Daniel Macks 2017-03-20 10:22:15 -04:00 committed by Philip Withnall
parent 69b4c72fe5
commit 929e1b1fde

View File

@ -159,7 +159,7 @@ g_utf8_collate (const gchar *str1,
return result; return result;
} }
#if defined(__STDC_ISO_10646__) || defined(HAVE_CARBON) #if defined(__STDC_ISO_10646__)
/* We need UTF-8 encoding of numbers to encode the weights if /* We need UTF-8 encoding of numbers to encode the weights if
* we are using wcsxfrm. However, we aren't encoding Unicode * we are using wcsxfrm. However, we aren't encoding Unicode
* characters, so we can't simply use g_unichar_to_utf8. * characters, so we can't simply use g_unichar_to_utf8.
@ -206,7 +206,7 @@ utf8_encode (char *buf, wchar_t val)
return retval; return retval;
} }
#endif /* __STDC_ISO_10646__ || HAVE_CARBON */ #endif /* __STDC_ISO_10646__ */
#ifdef HAVE_CARBON #ifdef HAVE_CARBON