Branch: Tag:

2014-03-02

2014-03-02 14:15:18 by Marcus Comstedt <marcus@mc.pp.se>

GTK2: Test for existence of glib schar functions

543:    retval=(LONGEST)g_value_get_long(a);    break;    case G_TYPE_CHAR: + #ifdef HAVE_G_VALUE_GET_SCHAR    retval=(LONGEST)g_value_get_schar(a); -  + #else +  retval=(LONGEST)g_value_get_char(a); + #endif    break;    default:    retval=(LONGEST)g_value_get_uint(a);
1201:    g_value_set_uint(gv,(guint)PGTK_GETINT(sv));    break;    case G_TYPE_CHAR: + #ifdef HAVE_G_VALUE_SET_SCHAR    g_value_set_schar(gv,(gchar)PGTK_GETINT(sv)); -  + #else +  g_value_set_char(gv,(gchar)PGTK_GETINT(sv)); + #endif    break;    case G_TYPE_UCHAR:    g_value_set_uchar(gv,(guchar)PGTK_GETINT(sv));