[PATCH weston 9/9] shared/platform.h: remove the local EGL platform (re)definitions

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 4 14:34:24 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 shared/platform.h | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/shared/platform.h b/shared/platform.h
index b8be6bf..0738890 100644
--- a/shared/platform.h
+++ b/shared/platform.h
@@ -35,9 +35,7 @@
 #include <EGL/eglext.h>
 #endif
 
-#ifndef EGL_PLATFORM_WAYLAND_KHR
-#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
-#endif
+#include "weston-egl-ext.h"
 
 #ifdef  __cplusplus
 extern "C" {
@@ -45,16 +43,6 @@ extern "C" {
 
 #ifdef ENABLE_EGL
 
-#ifndef EGL_EXT_platform_base
-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 bool
 weston_check_extension(const char *extensions, const char *extension)
 {
-- 
2.8.2



More information about the wayland-devel mailing list