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
This commit is contained in:
Benjamin Dauvergne 2009-04-02 17:16:05 +00:00
parent 3e4f391987
commit ff18983520
2 changed files with 8 additions and 0 deletions

View File

@ -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__ */

View File

@ -28,6 +28,7 @@
#include <lasso/lasso.h>
#include <glib.h>
#include "utils.h"
static char*