Upon Chris's suggestion, moved the #ifdef's to the generated C code.