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>
dev
Manuel Bachmann 10 years ago committed by Pekka Paalanen
parent 807f09c94f
commit e812859527
  1. 9
      shared/platform.h

@ -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 *

Loading…
Cancel
Save