https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115885 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note doing extern "C" around includes is bad form and is even undefined according to the C++ standard.