From 20de2e45e397d4ed336a25e7222ff5ec21e85a73 Mon Sep 17 00:00:00 2001 From: Alexis Hetu Date: Fri, 4 Aug 2017 13:26:44 -0400 Subject: [PATCH] EGL header fix for OZONE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This should allow to compile on the OZONE platform without hitting the X11 include library problem. The change is imported from: https://cs.chromium.org/chromium/src/third_party/khronos/EGL/eglplatform.h Change-Id: I3b3acc139865797ce6c4173991f15840e91f5935 Reviewed-on: https://swiftshader-review.googlesource.com/11308 Reviewed-by: Alexis Hétu Reviewed-by: Nicolas Capens Tested-by: Alexis Hétu --- include/EGL/eglplatform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index c77c3338d..f5a22bc29 100644 --- a/include/EGL/eglplatform.h +++ b/include/EGL/eglplatform.h @@ -92,6 +92,12 @@ typedef struct ANativeWindow* EGLNativeWindowType; typedef struct egl_native_pixmap_t* EGLNativePixmapType; typedef void* EGLNativeDisplayType; +#elif defined(USE_OZONE) + +typedef intptr_t EGLNativeDisplayType; +typedef intptr_t EGLNativeWindowType; +typedef intptr_t EGLNativePixmapType; + #elif defined(__unix__) /* X11 (tentative) */ -- 2.11.0