aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-02 10:51:52 +0100
committerGitHub <noreply@github.com>2020-11-02 10:51:52 +0100
commitf0ddcd361ea8b20b0a5da8effc30d8c51540f948 (patch)
tree797e0eba4ddf885ac73b5a17e946d68c95d1f45e
parent0f9b2bfa64359eaeb25b73ccae08c9059bfc02e7 (diff)
render: define EGL_NO_PLATFORM_SPECIFIC_TYPES (#2452)
This avoids Xlib.h inclusion via EGL headers. See [1] for discussion. This change is based on a Weston commit [2]. [1]: https://github.com/KhronosGroup/EGL-Registry/pull/111 [2]: https://gitlab.freedesktop.org/wayland/weston/commit/526765ddfdfd
-rw-r--r--include/wlr/render/egl.h3
-rw-r--r--include/wlr/render/interface.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index d46d95af..b2393177 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -15,6 +15,9 @@
#ifndef EGL_NO_X11
#define EGL_NO_X11
#endif
+#ifndef EGL_NO_PLATFORM_SPECIFIC_TYPES
+#define EGL_NO_PLATFORM_SPECIFIC_TYPES
+#endif
#include <wlr/config.h>
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 93c987b7..998b1cfa 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -15,6 +15,9 @@
#ifndef EGL_NO_X11
#define EGL_NO_X11
#endif
+#ifndef EGL_NO_PLATFORM_SPECIFIC_TYPES
+#define EGL_NO_PLATFORM_SPECIFIC_TYPES
+#endif
#include <EGL/egl.h>
#include <EGL/eglext.h>