Fix compilation error in switch_generic.c