aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-checks/test-gtk2.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-09-30 15:01:56 +0200
committerIngo Molnar <mingo@kernel.org>2013-10-09 08:48:41 +0200
commit7ef9e055ce1d8ad93f636bde1bf050eef26c798b (patch)
tree2cff956b5e0d6e00b0eb7cfc42331cac4fd7c74e /tools/perf/config/feature-checks/test-gtk2.c
parenttools/perf/build: Split out feature check: 'libslang' (diff)
downloadlinux-dev-7ef9e055ce1d8ad93f636bde1bf050eef26c798b.tar.xz
linux-dev-7ef9e055ce1d8ad93f636bde1bf050eef26c798b.zip
tools/perf/build: Split out feature check: 'gtk2'
Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-gfwzurn7wywiviLp7Swyyqsy@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/config/feature-checks/test-gtk2.c')
-rw-r--r--tools/perf/config/feature-checks/test-gtk2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-gtk2.c b/tools/perf/config/feature-checks/test-gtk2.c
new file mode 100644
index 000000000000..1ac6d8a1fb14
--- /dev/null
+++ b/tools/perf/config/feature-checks/test-gtk2.c
@@ -0,0 +1,10 @@
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#include <gtk/gtk.h>
+#pragma GCC diagnostic error "-Wstrict-prototypes"
+
+int main(int argc, char *argv[])
+{
+ gtk_init(&argc, &argv);
+
+ return 0;
+}