[PATCH] gl-renderer: make EGL typedefs similar to EGL/egl.h when building without EGL support

Kristian Høgsberg hoegsberg at gmail.com
Tue Jan 15 13:00:34 PST 2013


On Fri, Jan 11, 2013 at 01:50:45PM +0300, Vasily Khoruzhick wrote:
> Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>

Yeah, it's all a bit messy, but this is better.

Kristian

> ---
>  src/gl-renderer.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/gl-renderer.h b/src/gl-renderer.h
> index 81735e6..a2e8690 100644
> --- a/src/gl-renderer.h
> +++ b/src/gl-renderer.h
> @@ -53,10 +53,10 @@ gl_renderer_print_egl_error_state(void);
>  #else
>  
>  typedef int EGLint;
> -typedef int EGLDisplay;
> -typedef int EGLSurface;
> -typedef long int EGLNativeDisplayType;
> -typedef long int EGLNativeWindowType;
> +typedef void *EGLDisplay;
> +typedef void *EGLSurface;
> +typedef intptr_t EGLNativeDisplayType;
> +typedef intptr_t EGLNativeWindowType;
>  
>  static const EGLint gl_renderer_opaque_attribs[];
>  static const EGLint gl_renderer_alpha_attribs[];
> -- 
> 1.8.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list