Well if anything its

my.flags |= POLYGON;

or, which means the same

set(my,POLYGON);

and if that does not work you're doing something else very wrong in your script, like not including acknex.h.