Fix preprocessor gating

#endif was not at EOF.