Avoid building the code for platforms that lack wayland. The note is still valid as it is based on the lack of input handling (event_loop) when building with wayland in mind. To avoid issues as that changes just wrap it up now, similar to every other platform.
Signed-off-by: Emil Velikov <[email protected]> --- tests/util/piglit-framework-gl/piglit_winsys_framework.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/util/piglit-framework-gl/piglit_winsys_framework.c b/tests/util/piglit-framework-gl/piglit_winsys_framework.c index 62d7cb5..6dc92f4 100644 --- a/tests/util/piglit-framework-gl/piglit_winsys_framework.c +++ b/tests/util/piglit-framework-gl/piglit_winsys_framework.c @@ -170,11 +170,10 @@ piglit_winsys_framework_factory(const struct piglit_gl_test_config *test_config) return piglit_gbm_framework_create(test_config); #endif -/* There is no need to #ifdef out Piglit support for Wayland yet - * because Piglit calls no Wayland functions. - */ +#ifdef PIGLIT_HAS_WAYLAND case WAFFLE_PLATFORM_WAYLAND: return piglit_wl_framework_create(test_config); +#endif default: assert(0); return NULL; -- 2.0.2 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
