aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-11-06 05:51:49 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-11-06 05:51:49 +0000
commit7885237398b7993cb7dd391b410071e9a3b38694 (patch)
tree1f60f2f7ec52f91e1e3a030246799d8ef213886e /epan/strutil.h
parent8da1f94ccad522378ee75ebe25f0b9af16cb26d1 (diff)
add a g_byte_array_sized_new() helper if we compile for glib < 2
svn path=/trunk/; revision=23373
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index f11972e19a..506bed2b3d 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -235,4 +235,9 @@ gsize g_strlcpy(gchar *dest, const gchar *src, gsize dest_size);
#endif
+#if GLIB_MAJOR_VERSION < 2
+/* g_byte_array_sized_new() doesnt exist in glib-1.2 */
+GByteArray *g_byte_array_sized_new(guint reserved_size);
+#endif
+
#endif /* __STRUTIL_H__ */