aboutsummaryrefslogtreecommitdiffstats
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 09:02:22 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 10:00:26 (GMT)
commit3cada8d74f6a4e82538bc17923f27bd3e03f4e8e (patch)
tree082ce856ccbbad8f5f1617992a71797459551ea5 /src/callbacks.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/callbacks.c')
-rw-r--r--src/callbacks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index cde3ef0..f678c2d 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -1,10 +1,9 @@
-#include <gtk/gtk.h>
-#include <glib/gi18n.h>
-#include <config.h>
#include "callbacks.h"
#include "interface.h"
#include "support.h"
#include "filter.h"
+#include <glib/gi18n.h>
+#include <config.h>
#include <pthread.h>
#include <libv4l2.h>

Privacy Policy