From a3eb8702fb4de03ca132a66e7e8df1a0b8f85e9a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 3 May 2016 12:25:53 +0100 Subject: [PATCH] mesa_glinterop: remove inclusion of EGL header MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Analogous to previous commit, but for EGL. Signed-off-by: Emil Velikov Reviewed-by: Marek Olšák Tested-by: Tom Stellard --- include/GL/mesa_glinterop.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h index b76bd7ec2f5..5c172c6ca9e 100644 --- a/include/GL/mesa_glinterop.h +++ b/include/GL/mesa_glinterop.h @@ -51,7 +51,7 @@ #define MESA_GLINTEROP_H #include -#include +#include #ifdef __cplusplus extern "C" { @@ -61,6 +61,10 @@ extern "C" { typedef struct _XDisplay Display; typedef struct __GLXcontextRec *GLXContext; +/* Forward declarations to avoid inclusion of EGL/egl.h */ +typedef void *EGLDisplay; +typedef void *EGLContext; + /** Returned error codes. */ enum { MESA_GLINTEROP_SUCCESS = 0, -- 2.30.2