Fixed $ENDIF compiler switch