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

Vasily Khoruzhick anarsoul at gmail.com
Fri Jan 11 02:50:45 PST 2013


Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
 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



More information about the wayland-devel mailing list