summaryrefslogtreecommitdiffstats
path: root/lasso/utils.h
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-02 17:16:05 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-02 17:16:05 +0000
commitff1898352074ea8e6ab5fb5bb377618e7f8cf68f (patch)
tree7d38289fab4c12421a66f9425bfd8b7b0950a9cf /lasso/utils.h
parent3e4f391987e0f483f86cafdad6200e2ec080c9ab (diff)
downloadlasso-ff1898352074ea8e6ab5fb5bb377618e7f8cf68f.tar.gz
lasso-ff1898352074ea8e6ab5fb5bb377618e7f8cf68f.tar.xz
lasso-ff1898352074ea8e6ab5fb5bb377618e7f8cf68f.zip
Tests&Core: add g_strcmp0 if glib is old
* lasso/utils.h: if glib is older than 2.16, export g_strcmp0 as part of internal headers, in order to use it in login_tests.c * tests/login_tests.c: include utils.h
Diffstat (limited to 'lasso/utils.h')
-rw-r--r--lasso/utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lasso/utils.h b/lasso/utils.h
index 4766420e..6fe5d02c 100644
--- a/lasso/utils.h
+++ b/lasso/utils.h
@@ -372,4 +372,11 @@
/* Get a printable extract for error messages */
char* lasso_safe_prefix_string(const char *str, gsize length);
+/* GLIB bacward-compatibility */
+#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 16)
+int g_strcmp0 (const char *str1,
+ const char *str2);
+#endif
+
+
#endif /* __LASSO_UTILS_H__ */