mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
Tell Mesa not to attempt X11 headers
If no X11 related things are being built, tell Mesa's eglplatform.h not to attempt inclusion of associated X11 header.
This commit is contained in:
parent
e70a552203
commit
beefec3326
2 changed files with 12 additions and 0 deletions
|
@ -9,6 +9,12 @@
|
|||
#ifndef WLR_RENDER_EGL_H
|
||||
#define WLR_RENDER_EGL_H
|
||||
|
||||
#include <wlr/config.h>
|
||||
|
||||
#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND))
|
||||
#define MESA_EGL_NO_X11_HEADERS
|
||||
#endif
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <pixman.h>
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
#ifndef WLR_RENDER_INTERFACE_H
|
||||
#define WLR_RENDER_INTERFACE_H
|
||||
|
||||
#include <wlr/config.h>
|
||||
|
||||
#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND))
|
||||
#define MESA_EGL_NO_X11_HEADERS
|
||||
#endif
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <stdbool.h>
|
||||
|
|
Loading…
Reference in a new issue