aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-11-16 23:15:04 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-11-16 23:15:04 +0000
commitbde7f8d3b6bd4bc7cbf18ca20cf7be045f730b4a (patch)
treedc5b8e564ea64c8efb469d96c56971856723b99b /epan/strutil.h
parent3487cd6d59181fa5946877f9617d41f0a056e8fc (diff)
add a g_ascii_isprint() macro so that this symbol can be used for gtk1 platforms as well
svn path=/trunk/; revision=16519
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index dceeabe76b..8d4420ed96 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -156,4 +156,12 @@ char * convert_string_case(const char *string, gboolean case_insensitive);
}
#endif
+/* g_ascii_isprint() does not exist in gtk 1
+ * assume all codes >=0x20 and <0x80 are ascii printables.
+ */
+#if GTK_MAJOR_VERSION < 2
+#define g_ascii_isprint(c) \
+ (((c<0x20)||(c>=0x80))?FALSE:TRUE)
+#endif
+
#endif /* __STRUTIL_H__ */