toytoolkit: fix new EGL extensions fallback typedefs

The dummy typedefs for "get_platform_display()" and
"create_platform_window()" were badly defined, which
prevented building Weston on older systems.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Manuel Bachmann 2015-03-28 07:05:48 +01:00 committed by Pekka Paalanen
parent 807f09c94f
commit e812859527
1 changed files with 7 additions and 2 deletions

View File

@ -41,8 +41,13 @@ extern "C" {
#ifdef ENABLE_EGL
#ifndef EGL_EXT_platform_base
typedef void (*PFNEGLGETPLATFORMDISPLAYEXTPROC) (void);
typedef void (*PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (void);
typedef EGLDisplay (*PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform,
void *native_display,
const EGLint *attrib_list);
typedef EGLSurface (*PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy,
EGLConfig config,
void *native_window,
const EGLint *attrib_list);
#endif
static inline void *