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 <[email protected]> > --- > 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 > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
