Add extra conditionals for all possible usecases (HAVE_EGL/HAVE_OPENGL/HAVE_OPENGLES/etc)

This commit is contained in:
twinaphex 2016-02-18 07:18:58 +01:00
parent bd672b8b72
commit f5c5c82729

View File

@ -14,6 +14,10 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#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 <sys/poll.h>
#include <unistd.h>
#include <signal.h>
#include <wayland-client.h>
#ifdef HAVE_EGL
#include <wayland-egl.h>
#endif
#include <string/stdstring.h>
#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;