diff options
author | Ahmet Acar <unixman@archlinux.info> | 2015-11-13 10:25:46 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2015-11-13 10:25:46 -0600 |
commit | 64d78bba9c41281b3e439e8f3f0d0844dc4e414a (patch) | |
tree | 5ece5fd22135423967ae98b06c5df0e0cb967f4c /shared | |
parent | 4a7ce1f66dd1763b0f61bdf5f40736ba927ef24a (diff) | |
download | weston-64d78bba9c41281b3e439e8f3f0d0844dc4e414a.tar.gz |
shared: work around EGL header idiosyncrasy
When no X11 headers are present eglplatform.h will break unless
certain defines are set prior to its inclusion.
including wayland-egl.h defines WL_EGL_PLATFORM which will stop
the attempted inclusion of the X11 headers.
Maybe this isn't the best solution to the problem, but it's harmless
and gets the job done.
Closes bug: https://bugs.freedesktop.org/show_bug.cgi?id=92104
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
(patch by Ahmet Acar, commit log by Derek Foreman)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/platform.h b/shared/platform.h index 64e1fbf2..cf4ecc02 100644 --- a/shared/platform.h +++ b/shared/platform.h @@ -29,6 +29,7 @@ #include <string.h> #ifdef ENABLE_EGL +#include <wayland-egl.h> #include <EGL/egl.h> #include <EGL/eglext.h> #endif |