PICC18: Certain __CONFIG() -macros cause syntax errors
OK, I thought I'll answer properly :)

The &amp;&amp; is a logical operator and the result is boolean. This does not make any sense in this case. What you need is &amp; (a bit-wise operator).