#undef in generated headers moved into the global scope