Fixed OTR dependency when library not present, changed version to 0.4.2

This commit is contained in:
James Booth
2014-05-19 20:41:19 +01:00
parent 3fb5649ccc
commit e10ea1be4e
5 changed files with 13 additions and 1 deletions

View File

@@ -6,9 +6,12 @@
#include <string.h>
#include <glib.h>
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#include "config/account.h"
#ifdef HAVE_LIBOTR
static void
_mock_otr_keygen(ProfAccount *account)
{
@@ -88,3 +91,4 @@ otr_start_query_returns(char *query)
otr_start_query = _mock_otr_start_query;
will_return(_mock_otr_start_query, query);
}
#endif