From 8472045b16b3e4621553fe451a20a9ba9f0d44b6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 3 May 2016 12:25:34 +0100 Subject: mesa_glinterop: remove inclusion of GLX header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we only need partial information about the GLX symbols we can forward declare them and drop the include. Obviously each user of the said API will needs more than what's provides, so they'll include the GLX header. If they don't, the compiler will give us a nice warning ;-) Signed-off-by: Emil Velikov Reviewed-by: Marek Olšák Tested-by: Tom Stellard --- include/GL/mesa_glinterop.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h index ae71fea..b76bd7e 100644 --- a/include/GL/mesa_glinterop.h +++ b/include/GL/mesa_glinterop.h @@ -51,13 +51,16 @@ #define MESA_GLINTEROP_H #include -#include #include #ifdef __cplusplus extern "C" { #endif +/* Forward declarations to avoid inclusion of GL/glx.h */ +typedef struct _XDisplay Display; +typedef struct __GLXcontextRec *GLXContext; + /** Returned error codes. */ enum { MESA_GLINTEROP_SUCCESS = 0, -- cgit v1.1