[PATCH v2 libinput 4.5/5] test: switch from #ifdef to #if HAVE_LIBUNWIND

Peter Hutterer peter.hutterer at who-t.net
Thu Apr 27 02:30:58 UTC 2017


We use #if everywhere else and it allows building with '-Wundef -Werror=undef'
to avoid accidental misuse.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
New in this series

 test/litest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/litest.c b/test/litest.c
index c7869e8..9eadc45 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -87,7 +87,7 @@ static void litest_remove_udev_rules(struct list *created_files_list);
 #define litest_vlog(...) { /* __VA_ARGS__ */ }
 #endif
 
-#ifdef HAVE_LIBUNWIND
+#if HAVE_LIBUNWIND
 #define UNW_LOCAL_ONLY
 #include <libunwind.h>
 #include <dlfcn.h>
-- 
2.9.3



More information about the wayland-devel mailing list