diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-01-02 21:59:15 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-01-14 11:37:58 +0000 |
commit | 6b09a8bc48bd06314c6716426ea73f38402e6e64 (patch) | |
tree | a3179bd0808b1b5f57053d0c167a4bf9393935a8 | |
parent | 68371fb802a1be80187bd6a0ccb5250276da5a3b (diff) | |
download | libepoxy-6b09a8bc48bd06314c6716426ea73f38402e6e64.tar.gz |
Use EGL_NO_X11 to disable X11 headers
MESA_EGL_NO_X11_HEADERS has been deprecated, and libglvnd only supports
EGL_NO_X11.
Fixes: #214
-rw-r--r-- | src/dispatch_common.h | 9 |
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 |