The reason these includes existed were to force halide_error to have the correct type signature. I.e. with the include, changing the type signature of halide_error in Halide proper would cause this test to not compile (because you can't have polymorphism with extern "C" linkage).