source: glib_compat.c @ e1e59a7

debianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since e1e59a7 was 731dd1e, checked in by Geoffrey Thomas <geofft@mit.edu>, 16 years ago
Do we really need gcc -I. and #include <owl.h>?
  • 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.