From f5c5c82729b1da9a5a802ea6b41f62a1dc567d69 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 18 Feb 2016 07:18:58 +0100 Subject: [PATCH] Add extra conditionals for all possible usecases (HAVE_EGL/HAVE_OPENGL/HAVE_OPENGLES/etc) --- gfx/drivers_context/wayland_ctx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 5d9dd85f07..154af44a3b 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -14,6 +14,10 @@ * If not, see . */ +#ifdef HAVE_CONFIG_H +#include "../../config.h" +#endif + /* Temporary switch until this driver is ready for Vulkan, * replace HAVE_VULKAN_SUPPORT with HAVE_VULKAN then */ #if 0 @@ -29,17 +33,24 @@ #include #include +#include #include +#ifdef HAVE_EGL #include +#endif #include #include "../../driver.h" #include "../../general.h" #include "../../runloop.h" +#ifdef HAVE_EGL #include "../common/egl_common.h" +#endif +#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) #include "../common/gl_common.h" +#endif static volatile sig_atomic_t g_quit = 0;