Added a missing #endif

Lesson learned: DON'T transcribe code from a good source file into the GitHub editor out of laziness. Do it the right way...