mesa: 8314dd7ff2c4719ffb64b202cf5fdd0e38ad276e (master 11.3.0-devel)
$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling src/gallium/state_trackers/dri/dri2.c ...
In file included from src/mesa/drivers/dri/common/dri_util.h:57,
include/GL/internal/dri_interface.h:404: error: redefinition of typedef ‘mesa_glinterop_device_info’
include/GL/mesa_glinterop.h:116: note: previous declaration of ‘mesa_glinterop_device_info’ was here
include/GL/internal/dri_interface.h:405: error: redefinition of typedef ‘mesa_glinterop_export_in’
include/GL/mesa_glinterop.h:181: note: previous declaration of ‘mesa_glinterop_export_in’ was here
include/GL/internal/dri_interface.h:406: error: redefinition of typedef ‘mesa_glinterop_export_out’
include/GL/mesa_glinterop.h:236: note: previous declaration of ‘mesa_glinterop_export_out’ was here
Should be fixed with
Author: Emil Velikov <firstname.lastname@example.org>
Date: Mon May 30 10:56:33 2016 +0100
mesa_glinterop: remove mesa_glinterop typedefs
As is there are two places that do the typedefs - dri_interface.h and
this header. As we cannot include the former in here, just drop the
typedefs and use the struct directly (as needed).
This is required because typedef redefinition is C11 feature which is
not supported on all the versions of GCC used to build mesa.
v2: Kill the typedef alltogether, as per Marek.
Cc: Vinson Lee <email@example.com>
Signed-off-by: Emil Velikov <firstname.lastname@example.org>
Reviewed-by: Marek Olšák <email@example.com>