[PATCH weston 1/2] tests: Include weston-egl-ext from weston-test
Bryce Harrington
bryce at osg.samsung.com
Wed Feb 11 17:48:35 PST 2015
On Wed, Feb 11, 2015 at 06:15:17PM +0000, Daniel Stone wrote:
> weston-test uses eglBindWaylandDisplayWL and friends, which are defined
> either by the EGL implementation, or weston-egl-ext.h as a fallback.
> Include weston-egl-ext.h from weston-test, so we can build on systems
> whose native EGL implementation doesn't give us the needed defines.
This sounds sensible, however looking at weston-egl-ext.h, the three
egl*WL functions appear to get declared only when EGL_EGLEXT_PROTOTYPES
is defined, and I'm not spotting where that comes in. I'm sure you're
correct here, but could you help me connect the dots?
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
> tests/weston-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/weston-test.c b/tests/weston-test.c
> index 77eaa23..8777f70 100644
> --- a/tests/weston-test.c
> +++ b/tests/weston-test.c
> @@ -33,6 +33,7 @@
> #ifdef ENABLE_EGL
> #include <EGL/egl.h>
> #include <EGL/eglext.h>
> +#include "../src/weston-egl-ext.h"
> #endif /* ENABLE_EGL */
>
> struct weston_test {
> --
> 2.1.0
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list