From 3cada8d74f6a4e82538bc17923f27bd3e03f4e8e Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 4 Sep 2018 06:02:22 -0300 Subject: Centralize include for gtk 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/support.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/support.c') 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 #include #include #include - #include -#include -#include "callbacks.h" -#include "interface.h" -#include "support.h" #include GtkWidget *xpm_label_box (gchar * xpm_filename) -- cgit v1.2.1