Since you are not actually implementing the tone and noTone functions with the change you made, the tone and noTone functions must actually be defined somewhere (they are). So, you should find the header file in which they are defined, and include that, not modify WProgram.h.
Sanguino doesn't declare tone or noTone. His solution is actually the right one.
there must also be a declaration for them, somewhere.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16