Unless the define causes problems, the way this is handled in the other platforms is that it's simply declared anyway, and it's user error to try and use it with a port that it's not valid for.