Error compiling dual endstop firmware

I am not able to compile the dual endstop firmware. I get a - missing binary operator before token “(”
see the attached link to pastebin for complete error.

Anyone got a fix?

https://pastebin.com/NhsnHeKE

I am using a MKS 1.4 if that matters

Arduino 1.9 (beta).