summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-01-02 21:59:15 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-01-02 21:59:15 +0000
commitba887c4a1d1a57b06e0601cddcbdbe64656709bb (patch)
tree765f051ec2ab6d51c811dbafaf0d1de536183910
parent5d818164dd2ab87b0054641f1446bc552a602320 (diff)
downloadlibepoxy-issue-214.tar.gz
Use EGL_NO_X11 to disable X11 headersissue-214
MESA_EGL_NO_X11_HEADERS has been deprecated, and libglvnd only supports EGL_NO_X11. Fixes: #214
-rw-r--r--src/dispatch_common.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dispatch_common.h b/src/dispatch_common.h
index a361ccc..a136943 100644
--- a/src/dispatch_common.h
+++ b/src/dispatch_common.h
@@ -47,9 +47,12 @@
#endif
#if PLATFORM_HAS_EGL
# if !ENABLE_X11
-/* Mesa uses this symbol to avoid including X11 headers when including
- * EGL.h; since X11 was explicitly disabled at configuration time, we
- * should do the same
+/* Disable including X11 headers if the X11 support was disabled at
+ * configuration time
+ */
+# define EGL_NO_X11 1
+/* Older versions of Mesa use this symbol to achieve the same result
+ * as EGL_NO_X11
*/
# define MESA_EGL_NO_X11_HEADERS 1
# endif