aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-globals.h
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/camorama-globals.h
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/camorama-globals.h')
-rw-r--r--src/camorama-globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camorama-globals.h b/src/camorama-globals.h
index 4dd8386..71d8b71 100644
--- a/src/camorama-globals.h
+++ b/src/camorama-globals.h
@@ -25,7 +25,7 @@
#ifndef CAMORAMA_GLOBALS_H
#define CAMORAMA_GLOBALS_H
-#include <gtk/gtk.h>
+#include "v4l.h"
G_BEGIN_DECLS

Privacy Policy