render: unconditionally disable implicit X11 includes
Even if the X11 backend or Xwayland is enabled, we don't rely on EGL/egl.h including Xlib headers.
This commit is contained in:
parent
144d2041ad
commit
7f2bd0b211
|
@ -9,16 +9,12 @@
|
|||
#ifndef WLR_RENDER_EGL_H
|
||||
#define WLR_RENDER_EGL_H
|
||||
|
||||
#include <wlr/config.h>
|
||||
|
||||
#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND
|
||||
#ifndef MESA_EGL_NO_X11_HEADERS
|
||||
#define MESA_EGL_NO_X11_HEADERS
|
||||
#endif
|
||||
#ifndef EGL_NO_X11
|
||||
#define EGL_NO_X11
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
|
|
|
@ -9,16 +9,12 @@
|
|||
#ifndef WLR_RENDER_INTERFACE_H
|
||||
#define WLR_RENDER_INTERFACE_H
|
||||
|
||||
#include <wlr/config.h>
|
||||
|
||||
#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND
|
||||
#ifndef MESA_EGL_NO_X11_HEADERS
|
||||
#define MESA_EGL_NO_X11_HEADERS
|
||||
#endif
|
||||
#ifndef EGL_NO_X11
|
||||
#define EGL_NO_X11
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
|
|
Loading…
Reference in New Issue