summaryrefslogtreecommitdiff
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-10-22 12:20:36 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-10-22 12:20:36 +0000
commite9f13d771c0e175743c323b596ec61f4c8bec99f (patch)
tree531c5ef5853d82d97487605fcc26fdf48835e06f /epan/strutil.h
parent0c0cec7e69ccd4c83f079751bfda2176c2b7afe4 (diff)
downloadwireshark-e9f13d771c0e175743c323b596ec61f4c8bec99f.tar.gz
g_strcmp0 first occures in GLIB 2.16 define it localy if it does not exist
to make builds on Fedora 8 with GTK 2.12 work. svn path=/trunk/; revision=45707
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 2cc8b80d7b..f64316ed86 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -272,6 +272,14 @@ gchar* ws_strdup_unescape_char (const gchar *str, const gchar chr);
*/
gchar *string_replace(const gchar* str, const gchar *old_val, const gchar *new_val);
+/**
+ * g_strcmp0 appears first in GLIB 2.16, define it locally for earlier versions.
+ */
+
+#if !GLIB_CHECK_VERSION(2,16,0)
+int g_strcmp0 (const char *str1,
+ const char *str2);
+#endif /* GLIB_CHECK_VERSION(2,16,0) */
#ifdef __cplusplus
}
#endif /* __cplusplus */