[Mesa-dev] [PATCH 08/14] mesa_glinterop: remove inclusion of EGL header

Emil Velikov emil.l.velikov at gmail.com
Tue May 24 14:32:50 UTC 2016


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

Analogous to previous commit, but for EGL.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 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 b76bd7e..5c172c6 100644
--- a/include/GL/mesa_glinterop.h
+++ b/include/GL/mesa_glinterop.h
@@ -51,7 +51,7 @@
 #define MESA_GLINTEROP_H
 
 #include <stddef.h>
-#include <EGL/egl.h>
+#include <stdint.h>
 
 #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.8.2



More information about the mesa-dev mailing list