diff options
author | Emil Velikov <[email protected]> | 2016-05-03 12:25:34 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-05-24 23:03:00 +0100 |
commit | 8472045b16b3e4621553fe451a20a9ba9f0d44b6 (patch) | |
tree | ea41dc20c35022d24cdf067426fdfba3690f8ef9 /include | |
parent | b5f9820d905a275bc01bbffa9b4927ec11286f8d (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/mesa_glinterop.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stddef.h> -#include <GL/glx.h> #include <EGL/egl.h> #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, |