Fix Linux/64 compile error.
Merge pull request #3691 from quickfur/missing_endif

Fix Linux/64 compile error introduced by pull #1296