From 24896a3bfbdd21e71e7ff5476a33bb87ebf114dd Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 31 Oct 2015 23:22:23 +0000 Subject: Added HAVE_LIBOTR checks --- src/ui/chatwin.c | 2 ++ src/ui/ui.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index 0e78fc24..047352c5 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -79,6 +79,7 @@ chatwin_receipt_received(ProfChatWin *chatwin, const char *const id) win_mark_received(win, id); } +#ifdef HAVE_LIBOTR void chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted) { @@ -201,6 +202,7 @@ chatwin_otr_untrust(ProfChatWin *chatwin) title_bar_switch(); } } +#endif void chatwin_recipient_gone(ProfChatWin *chatwin) diff --git a/src/ui/ui.h b/src/ui/ui.h index 088a5953..cf3bff01 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -38,7 +38,9 @@ #include "command/commands.h" #include "ui/win_types.h" #include "muc.h" +#ifdef HAVE_LIBOTR #include "otr/otr.h" +#endif #define NO_ME 1 #define NO_DATE 2 @@ -65,11 +67,15 @@ void ui_sigwinch_handler(int sig); ProfChatWin* chatwin_new(const char *const barejid); void chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const char *const message, GDateTime *timestamp, gboolean win_created, prof_enc_t enc_mode); + +#ifdef HAVE_LIBOTR void chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted); void chatwin_otr_unsecured(ProfChatWin *chatwin); void chatwin_otr_trust(ProfChatWin *chatwin); void chatwin_otr_untrust(ProfChatWin *chatwin); void chatwin_otr_smp_event(ProfChatWin *chatwin, prof_otr_smp_event_t event, void *data); +#endif + void chatwin_receipt_received(ProfChatWin *chatwin, const char *const id); void chatwin_recipient_gone(ProfChatWin *chatwin); void chatwin_outgoing_msg(ProfChatWin *chatwin, const char *const message, char *id, prof_enc_t enc_mode); -- cgit 1.4.1-2-gfad0