aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 06:02:22 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 07:00:26 -0300
commit3cada8d74f6a4e82538bc17923f27bd3e03f4e8e (patch)
tree082ce856ccbbad8f5f1617992a71797459551ea5 /src/support.c
parentab49eda5720583b0470a329434554e97c735e696 (diff)
Centralize include for gtk 2
With gtk 2, a function prototyle is declared on a wrong way. Depending on the gcc flags, this will produce an error: /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes] So, move gtk.h include to v4l.h and ensure that this warning is disabled when including it. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/support.c')
-rw-r--r--src/support.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/support.c b/src/support.c
index 5783b0a..98b081d 100644
--- a/src/support.c
+++ b/src/support.c
@@ -1,13 +1,12 @@
+#include "callbacks.h"
+#include "interface.h"
+#include "support.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
-
#include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
-#include "callbacks.h"
-#include "interface.h"
-#include "support.h"
#include <config.h>
GtkWidget *xpm_label_box (gchar * xpm_filename)

Privacy Policy