avr-gcc float macro error
I got it!

As Dave Tweed suggested in a comment, the issue was not the declaration itself but the way I was using that macro. In other lines I was doing this:

#if SPEED_FACTOR != 1


and if I comment this part everything works fine.

Thanks!