From: Emil Velikov Date: Tue, 3 May 2016 11:25:34 +0000 (+0100) Subject: mesa_glinterop: remove inclusion of GLX header X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8472045b16b3e4621553fe451a20a9ba9f0d44b6;p=mesa.git mesa_glinterop: remove inclusion of GLX header 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 --- diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h index ae71fea0087..b76bd7ec2f5 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,