source: glib_compat.c @ a1c2f06

barnowl_perlaim
Last change on this file since a1c2f06 was c453ada, checked in by Geoffrey Thomas <geofft@mit.edu>, 16 years ago
Remove aim.c. buddylist.c, buddy.c, libfaim, and everything that uses them.
  • Property mode set to 100644
File size: 427 bytes
Line 
1#include "owl.h"
2
3#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 14)
4/* Our own implementation of g_unichar_is_mark for glib versions that
5   are too old to have one. */
6int g_unichar_ismark(gunichar ucs)
7{
8  GUnicodeType t = g_unichar_type(ucs);
9  switch (t) {
10  case G_UNICODE_NON_SPACING_MARK:
11  case G_UNICODE_COMBINING_MARK:
12  case G_UNICODE_ENCLOSING_MARK:
13       return 1;
14  default:
15       return 0;
16  }
17}
18#endif
Note: See TracBrowser for help on using the repository browser.