about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-31 23:38:08 +0000
committerJames Booth <boothj5@gmail.com>2015-10-31 23:38:08 +0000
commit17488ca3462380cfc3be5ec1d6bac2675a45cc90 (patch)
tree7cda45bb6ff0c1d711846c2bf5dce759da660aca /src
parent8a7e2c19f9939fb738a89de23998d59a6a7bc5cf (diff)
downloadprofani-tty-17488ca3462380cfc3be5ec1d6bac2675a45cc90.tar.gz
Added missing config.h includes
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c4
-rw-r--r--src/event/client_events.c3
-rw-r--r--src/event/server_events.c4
-rw-r--r--src/main.c4
-rw-r--r--src/ui/chatwin.c5
-rw-r--r--src/ui/ui.h2
6 files changed, 16 insertions, 6 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 9e8ebe02..31d063e6 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -32,6 +32,8 @@
  *
  */
 
+#include "config.h"
+
 #include <assert.h>
 #include <errno.h>
 #include <limits.h>
@@ -41,8 +43,6 @@
 
 #include <glib.h>
 
-#include "config.h"
-
 #include "chat_session.h"
 #include "command/command.h"
 #include "command/commands.h"
diff --git a/src/event/client_events.c b/src/event/client_events.c
index 0579b07d..f1872202 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -32,10 +32,11 @@
  *
  */
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <glib.h>
 
-#include "config.h"
 #include "log.h"
 #include "ui/ui.h"
 #include "window_list.h"
diff --git a/src/event/server_events.c b/src/event/server_events.c
index b607c4f8..aea6a4ea 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -32,12 +32,12 @@
  *
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <stdlib.h>
 #include <assert.h>
 
-#include "config.h"
-
 #include "chat_session.h"
 #include "log.h"
 #include "muc.h"
diff --git a/src/main.c b/src/main.c
index 968ddf8a..0a49180b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,10 +31,12 @@
  * source files in the program, then also delete it here.
  *
  */
+
+#include "config.h"
+
 #include <string.h>
 #include <glib.h>
 
-#include "config.h"
 #ifdef HAVE_GIT_VERSION
 #include "gitversion.h"
 #endif
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index 047352c5..c34cc1fc 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -32,6 +32,8 @@
  *
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <stdlib.h>
 #include <assert.h>
@@ -44,6 +46,9 @@
 #include "ui/ui.h"
 #include "ui/window.h"
 #include "ui/titlebar.h"
+#ifdef HAVE_LIBOTR
+#include "otr/otr.h"
+#endif
 
 static void _chatwin_history(ProfChatWin *chatwin, const char *const contact);
 
diff --git a/src/ui/ui.h b/src/ui/ui.h
index cf3bff01..70c02da0 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -35,6 +35,8 @@
 #ifndef UI_UI_H
 #define UI_UI_H
 
+#include "config.h"
+
 #include "command/commands.h"
 #include "ui/win_types.h"
 #include "muc.h"