Simplify an #ifdef chain.