diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-14 07:51:22 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-14 07:51:22 +0000 |
commit | 3cd463c4a29d13452c4055ab8ec67de457d7a356 (patch) | |
tree | 2a3d6471a296298a01ccf21374455b82f5303830 /lasso/lasso.c | |
parent | 699f72e5687537dd4eded52fbe636a270a0f0580 (diff) | |
download | lasso-3cd463c4a29d13452c4055ab8ec67de457d7a356.tar.gz lasso-3cd463c4a29d13452c4055ab8ec67de457d7a356.tar.xz lasso-3cd463c4a29d13452c4055ab8ec67de457d7a356.zip |
Core: add an header file for backward compatibility
* lasso/backward_comp.h:
this header will contain substitue function, defines or types for
compatibility with older versions of dependencies.
* lasso/utils.h:
remove declaration of g_strcmp0
* lasso.c:
* tests/login_tests.c:
use backward_comp.h
Diffstat (limited to 'lasso/lasso.c')
-rw-r--r-- | lasso/lasso.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lasso/lasso.c b/lasso/lasso.c index 2d376492..c39c196b 100644 --- a/lasso/lasso.c +++ b/lasso/lasso.c @@ -37,6 +37,7 @@ #include <config.h> #include "lasso.h" #include "debug.h" +#include "./backward_comp.h" /* Set to true, it forces lasso_provider_verify_signature and lasso_query_verify_signature to always * return TRUE. */ @@ -78,21 +79,6 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) } #endif -#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 16) -static int g_strcmp0(const char *str1, const char *str2) { - if (str1 == NULL && str2 == NULL) { - return 0; - } - if (str1 == NULL) { - return -1; - } - if (str2 == NULL) { - return 1; - } - return strcmp(str1, str2); -} -#endif - #include "types.c" /** |