gsize g_strlcat(gchar *dst, gchar *src, gsize size);
#endif
+#if GLIB_MAJOR_VERSION < 2
/* g_ascii_isprint() does not exist in GLib 1.2[.x].
* assume all codes >=0x20 and <0x80 are ASCII printables.
*/
-#if GLIB_MAJOR_VERSION < 2
#define g_ascii_isprint(c) \
(((c<0x20)||(c>=0x80))?FALSE:TRUE)
+/* g_ascii_isxdigit() does not exist in Glib 1.2 */
+#define g_ascii_isxdigit(c) \
+ ( ((c>='0')&&(c<='9'))?TRUE: \
+ ( ((c>='a')&&(c<='f'))?TRUE: \
+ (((c>='A')&&(c<='F'))?TRUE:FALSE) ) )
+
#endif
#endif /* __STRUTIL_H__ */