mesa/include/GL
Vinson Lee eb9236e275 Revert "mesa_glinterop: remove inclusion of GLX header"
This reverts commit 8472045b16.

Conflicts:

	include/GL/mesa_glinterop.h

This patch fixes this build error with GCC 4.4.

  Compiling src/glx/dri_common_interop.c ...
In file included from src/glx/dri_common_interop.c:33:
include/GL/mesa_glinterop.h:62: error: redefinition of typedef ‘GLXContext’
include/GL/glx.h:165: note: previous declaration of ‘GLXContext’ was here

Fixes: 8472045b16 ("mesa_glinterop: remove inclusion of GLX header")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96770
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
(cherry picked from commit c10dcb2ce8)

Squashed with commit:

mesa_glinterop: allow building without X and related headers

This commit effectively reverts c10dcb2ce8
and fixes the typedef redefinition which inspired it.

In order to prevent requiring X packages at build time earlier commit
forward declared the required X/GLX typedefs. Since that approach
introduced typedef redefinition (a C11 feature) it was reverted.

To avoid the redefinition while _not_ mandating X and related headers
forward declare the structs and use those through the header.

As anyone uses the mesa interop header they ensure that the X (or others
in terms of EGL) headers are included, which ensures that everything is
resolved within the compilation unit.

Cc: Vinson Lee <vlee@freedesktop.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Cc: Tapani Pälli <tapani.palli@intel.com>
Cc: Chih-Wei Huang <cwhuang@android-x86.org>
Fixes: c10dcb2ce8 ("Revert "mesa_glinterop: remove inclusion of GLX
header"")
Fixes: 8472045b16 ("mesa_glinterop: remove inclusion of GLX header")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96770
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>

(cherry picked from commit c85b34ffd0)
2016-11-08 16:23:19 +00:00
..
internal mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
gl.h mesa: remove unused #pragma export on/off lines 2014-04-28 17:16:42 -06:00
gl_mangle.h mesa: regenerate gl_mangle.h 2014-08-12 08:09:45 -06:00
glcorearb.h GL: update glcorearb.h to svn 32433 2016-06-15 09:29:10 +01:00
glext.h GL: update glext to svn 32957 2016-06-15 09:29:10 +01:00
glx.h includes/GL: remove duplicated extension declarations from glx.h 2015-08-01 15:47:55 +01:00
glx_mangle.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
glxext.h mesa: update glxext.h to version 20140810 2014-08-12 08:09:45 -06:00
mesa_glinterop.h Revert "mesa_glinterop: remove inclusion of GLX header" 2016-11-08 16:23:19 +00:00
osmesa.h osmesa: add new OSMesaCreateContextAttribs function 2015-12-16 19:38:51 -07:00
wglext.h mesa: update wglext.h to version 20140810 2014-08-12 08:09:45 -06:00