From: Jakub Adam Date: Fri, 28 Mar 2014 15:36:05 +0000 (+0100) Subject: tests: fix build with libpurple 3.x.x X-Git-Tag: 1.18.1~5 X-Git-Url: https://repo.or.cz/w/siplcs.git/commitdiff_plain/9992d4a28752b58d78de4378bfc6a7df779b08ce tests: fix build with libpurple 3.x.x --- diff --git a/src/purple/tests.c b/src/purple/tests.c index f36ac771..5c5847db 100644 --- a/src/purple/tests.c +++ b/src/purple/tests.c @@ -31,7 +31,11 @@ #include +#include "version.h" +#if !PURPLE_VERSION_CHECK(3,0,0) #include "cipher.h" +#endif + #include "debug.h" #include "signals.h" @@ -52,7 +56,9 @@ int main() purple_signals_init(); purple_debug_init(); purple_debug_set_enabled(TRUE); +#if !PURPLE_VERSION_CHECK(3,0,0) purple_ciphers_init(); +#endif /* Run tests */ return(sip_sec_ntlm_tests() ? 0 : 1);