summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>2015-03-28 07:05:48 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-03-30 15:26:15 +0300
commite8128595279bfa80a41df92c5fb1736450f726b0 (patch)
tree55c2d840b86808927ad463308b84667e26db86eb /shared
parent807f09c94f9854056c154aca1c9dfad5865b7fd0 (diff)
downloadweston-e8128595279bfa80a41df92c5fb1736450f726b0.tar.gz
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>
Diffstat (limited to 'shared')
-rw-r--r--shared/platform.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/shared/platform.h b/shared/platform.h
index c0991885..ff640b54 100644
--- a/shared/platform.h
+++ b/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 *