summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2020-01-14 11:56:57 +0000
committerGitHub <noreply@github.com>2020-01-14 11:56:57 +0000
commitdcb0f31ce48d7bb376a0aef2249ef52475212b41 (patch)
treea3179bd0808b1b5f57053d0c167a4bf9393935a8
parent68371fb802a1be80187bd6a0ccb5250276da5a3b (diff)
parent6b09a8bc48bd06314c6716426ea73f38402e6e64 (diff)
downloadlibepoxy-dcb0f31ce48d7bb376a0aef2249ef52475212b41.tar.gz
Merge pull request #215 from anholt/issue-214
Use EGL_NO_X11 to disable X11 headers
-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