sorted that out.
in typing the code back in the forum post I typed it correctly.
the mistake was adding a semi-colon at the end of the define line.
this was causing the pre-compiler to create
int an1=analogRead(0;);
I should have realized that earlier reading the output message.
works for me too, of course.