Append missing `#endif`

Append `#endif` in L6250, L6267.