From: Peter Hutterer Date: Mon, 25 May 2015 06:38:12 +0000 (+1000) Subject: test: move litest_log/vlog up outside of HAVE_LIBUNWIND X-Git-Tag: upstream/0.15.0+92+gec468e8~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2c44ac9cd097673715637f20c3ce83965f5f16d;p=platform%2Fupstream%2Flibinput.git test: move litest_log/vlog up outside of HAVE_LIBUNWIND Well, the patch looks like the HAVE_LIBUNWIND bit was moved down, which is the same thing. litest_log and litest_vlog are called from independent paths, we have a compiler error otherwise. Signed-off-by: Peter Hutterer --- diff --git a/test/litest.c b/test/litest.c index 267487a7..bc7e1cd9 100644 --- a/test/litest.c +++ b/test/litest.c @@ -56,11 +56,6 @@ const char *filter_test = NULL; const char *filter_device = NULL; const char *filter_group = NULL; -#ifdef HAVE_LIBUNWIND -#define UNW_LOCAL_ONLY -#include -#include - /* defined for the litest selftest */ #ifndef LITEST_DISABLE_BACKTRACE_LOGGING #define litest_log(...) fprintf(stderr, __VA_ARGS__) @@ -70,6 +65,11 @@ const char *filter_group = NULL; #define litest_vlog(...) /* __VA_ARGS__ */ #endif +#ifdef HAVE_LIBUNWIND +#define UNW_LOCAL_ONLY +#include +#include + static char cwd[PATH_MAX]; static bool